Commit 0499b0ad authored by colemanw's avatar colemanw

CRM-15603 - Standardize punctuation of 'You do not have permission to access this page.'

parent 3bd48a28
......@@ -259,7 +259,7 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
if ($this->_action & CRM_Core_Action::DELETE) {
if (!CRM_Core_Permission::check('delete activities')) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
......
......@@ -109,7 +109,7 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form {
if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
$domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domainID) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
}
......
......@@ -90,7 +90,7 @@ class CRM_Campaign_Form_SurveyType extends CRM_Admin_Form {
if ($this->_id && in_array($this->_gName, CRM_Core_OptionGroup::$_domainIDGroups)) {
$domainID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionValue', $this->_id, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domainID) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
}
......
......@@ -114,7 +114,7 @@ class CRM_Case_Form_Case extends CRM_Core_Form {
//CRM-4418
if (!CRM_Core_Permission::checkActionPermission('CiviCase', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
if ($this->_action & CRM_Core_Action::DELETE || $this->_action & CRM_Core_Action::RENEW) {
......
......@@ -63,7 +63,7 @@ class CRM_Case_Form_Task_Delete extends CRM_Case_Form_Task {
*/ function preProcess() {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviCase', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
parent::preProcess();
}
......
......@@ -241,7 +241,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
//check permission for action.
if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
//@todo - if anyone ever figures out what this cdtype subroutine is about (or even if it still applies) please add comments
......
......@@ -65,7 +65,7 @@ class CRM_Contribute_Form_ContributionPage_Delete extends CRM_Contribute_Form_Co
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$dao = new CRM_Contribute_DAO_Contribution();
......
......@@ -56,7 +56,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
*/ function preProcess() {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviContribute', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
parent::preProcess();
}
......
......@@ -120,7 +120,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
// its an update mode, do a permission check
if (!CRM_Event_BAO_Event::checkPermission($this->_id, CRM_Core_Permission::EDIT)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$participantListingID = CRM_Utils_Array::value('participant_listing_id', $eventInfo);
......
......@@ -63,7 +63,7 @@ class CRM_Event_Form_ManageEvent_Delete extends CRM_Event_Form_ManageEvent {
}
if (!CRM_Event_BAO_Event::checkPermission($this->_id, CRM_Core_Permission::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
......
......@@ -348,7 +348,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
// check for edit permission
if (!CRM_Core_Permission::checkActionPermission('CiviEvent', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
if ($this->_action & CRM_Core_Action::DELETE) {
......
......@@ -58,7 +58,7 @@ class CRM_Event_Form_Task_Delete extends CRM_Event_Form_Task {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviEvent', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
parent::preProcess();
foreach ($this->_participantIds as $participantId) {
......
......@@ -87,7 +87,7 @@ class CRM_Grant_Form_Grant extends CRM_Core_Form {
//check permission for action.
if (!CRM_Core_Permission::checkActionPermission('CiviGrant', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$this->setPageTitle(ts('Grant'));
......
......@@ -58,7 +58,7 @@ class CRM_Grant_Form_Task_Delete extends CRM_Grant_Form_Task {
//check permission for delete.
if (!CRM_Core_Permission::checkActionPermission('CiviGrant', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
......
......@@ -51,7 +51,7 @@ class CRM_Grant_Form_Task_Update extends CRM_Grant_Form_Task {
//check permission for update.
if (!CRM_Core_Permission::checkActionPermission('CiviGrant', CRM_Core_Action::UPDATE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
......
......@@ -58,7 +58,7 @@ class CRM_Mailing_Form_Browse extends CRM_Core_Form {
// check for action permissions.
if (!CRM_Core_Permission::checkActionPermission('CiviMail', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$mailing = new CRM_Mailing_BAO_Mailing();
......
......@@ -193,7 +193,7 @@ class CRM_Mailing_Page_Browse extends CRM_Core_Page {
// check for action permissions.
if (!CRM_Core_Permission::checkActionPermission('CiviMail', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
CRM_Mailing_BAO_Mailing::del($this->_mailingId);
......
......@@ -120,7 +120,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
// check for edit permission
if (!CRM_Core_Permission::checkActionPermission('CiviMember', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
if ($this->_action & CRM_Core_Action::DELETE) {
......
......@@ -94,7 +94,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
parent::preProcess();
// check for edit permission
if (!CRM_Core_Permission::check('edit memberships')) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$this->assign('endDate', CRM_Utils_Date::customFormat(CRM_Core_DAO::getFieldValue('CRM_Member_DAO_Membership',
......
......@@ -57,7 +57,7 @@ class CRM_Member_Form_Task_Delete extends CRM_Member_Form_Task {
function preProcess() {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviMember', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
parent::preProcess();
}
......
......@@ -52,7 +52,7 @@ class CRM_PCP_Form_PCP extends CRM_Core_Form {
if ($this->_action & CRM_Core_Action::DELETE) {
//check permission for action.
if (!CRM_Core_Permission::checkActionPermission('CiviEvent', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
......
......@@ -56,7 +56,7 @@ class CRM_Pledge_Form_Payment extends CRM_Core_Form {
public function preProcess() {
// check for edit permission
if (!CRM_Core_Permission::check('edit pledges')) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$this->_id = CRM_Utils_Request::retrieve('ppId', 'Positive', $this);
......
......@@ -90,7 +90,7 @@ class CRM_Pledge_Form_Pledge extends CRM_Core_Form {
// check for action permissions.
if (!CRM_Core_Permission::checkActionPermission('CiviPledge', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
$this->assign('action', $this->_action);
......
......@@ -56,7 +56,7 @@ class CRM_Pledge_Form_Task_Delete extends CRM_Pledge_Form_Task {
*/ function preProcess() {
//check for delete
if (!CRM_Core_Permission::checkActionPermission('CiviPledge', CRM_Core_Action::DELETE)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
parent::preProcess();
}
......
......@@ -1151,7 +1151,7 @@ WHERE id = %1";
if ($sid && self::eventPriceSetDomainID()) {
$domain_id = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $sid, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domain_id) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
return TRUE;
......
......@@ -982,7 +982,7 @@ self::eventPriceSetDomainID()
) {
$domain_id = CRM_Core_DAO::getFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $sid, 'domain_id', 'id');
if (CRM_Core_Config::domainID() != $domain_id) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
}
return TRUE;
......
......@@ -594,7 +594,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
}
function permissionDenied() {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
function logout() {
......
......@@ -269,7 +269,7 @@ class CRM_Utils_System_UnitTests extends CRM_Utils_System_Drupal {
}
function permissionDenied() {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
function logout() {
......
......@@ -446,7 +446,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
}
function permissionDenied() {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
function logout() {
......
......@@ -67,7 +67,7 @@ class CRM_Auction_Form_Auction extends CRM_Core_Form {
$this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
if (!CRM_Core_Permission::checkActionPermission('CiviAuction', $this->_action)) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page'));
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}
if (($this->_action & CRM_Core_Action::VIEW ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment