$url = CRM_Utils_System::url('civicrm/admin/tag', "reset=1");
CRM_Core_Error::statusBounce(ts("This tag cannot be deleted. You must delete all its child tags ('%1', etc) prior to deleting this tag.", array(1 => $tag)), $url);
}
+ if ($this->_values['is_reserved'] == 1 && !CRM_Core_Permission::check('administer reserved tags')) {
+ CRM_Core_Error::statusBounce(ts("You do not have sufficient permission to delete this reserved tag."));
+ }
}
else {
$this->_isTagSet = CRM_Utils_Request::retrieve('tagset', 'Positive', $this);
$this->assign('count', CRM_Contact_BAO_Group::memberCount($this->_id));
CRM_Utils_System::setTitle(ts('Confirm Group Delete'));
}
+ if ($this->_groupValues['is_reserved'] == 1 && !CRM_Core_Permission::check('administer reserved groups')) {
+ CRM_Core_Error::statusBounce(ts("You do not have sufficient permission to delete this reserved group."));
+ }
}
else {
+ if ($this->_groupValues['is_reserved'] == 1 && !CRM_Core_Permission::check('administer reserved groups')) {
+ CRM_Core_Error::statusBounce(ts("You do not have sufficient permission to change settings for this reserved group."));
+ }
if (isset($this->_id)) {
$groupValues = array(
'id' => $this->_id,