From 0499b0ad0326045221e73178ebbb8b44a3f8d11d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 15 Nov 2014 20:48:48 -0500 Subject: [PATCH] CRM-15603 - Standardize punctuation of 'You do not have permission to access this page.' --- CRM/Activity/Form/Activity.php | 2 +- CRM/Admin/Form/Options.php | 2 +- CRM/Campaign/Form/SurveyType.php | 2 +- CRM/Case/Form/Case.php | 2 +- CRM/Case/Form/Task/Delete.php | 2 +- CRM/Contribute/Form/Contribution.php | 2 +- CRM/Contribute/Form/ContributionPage/Delete.php | 2 +- CRM/Contribute/Form/Task/Delete.php | 2 +- CRM/Event/Form/ManageEvent.php | 2 +- CRM/Event/Form/ManageEvent/Delete.php | 2 +- CRM/Event/Form/Participant.php | 2 +- CRM/Event/Form/Task/Delete.php | 2 +- CRM/Grant/Form/Grant.php | 2 +- CRM/Grant/Form/Task/Delete.php | 2 +- CRM/Grant/Form/Task/Update.php | 2 +- CRM/Mailing/Form/Browse.php | 2 +- CRM/Mailing/Page/Browse.php | 2 +- CRM/Member/Form/Membership.php | 2 +- CRM/Member/Form/MembershipRenewal.php | 2 +- CRM/Member/Form/Task/Delete.php | 2 +- CRM/PCP/Form/PCP.php | 2 +- CRM/Pledge/Form/Payment.php | 2 +- CRM/Pledge/Form/Pledge.php | 2 +- CRM/Pledge/Form/Task/Delete.php | 2 +- CRM/Price/BAO/PriceSet.php | 2 +- CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php | 2 +- CRM/Utils/System/Joomla.php | 2 +- CRM/Utils/System/UnitTests.php | 2 +- CRM/Utils/System/WordPress.php | 2 +- tools/CRM/Auction/Form/Auction.php | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index b314494f11..901d2cb162 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -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.')); } } diff --git a/CRM/Admin/Form/Options.php b/CRM/Admin/Form/Options.php index 44f7665789..089ba4b200 100644 --- a/CRM/Admin/Form/Options.php +++ b/CRM/Admin/Form/Options.php @@ -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.')); } } } diff --git a/CRM/Campaign/Form/SurveyType.php b/CRM/Campaign/Form/SurveyType.php index 9ca07475ea..1e86b9b346 100644 --- a/CRM/Campaign/Form/SurveyType.php +++ b/CRM/Campaign/Form/SurveyType.php @@ -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.')); } } } diff --git a/CRM/Case/Form/Case.php b/CRM/Case/Form/Case.php index 0b6abd1ff6..e7d3b43109 100644 --- a/CRM/Case/Form/Case.php +++ b/CRM/Case/Form/Case.php @@ -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) { diff --git a/CRM/Case/Form/Task/Delete.php b/CRM/Case/Form/Task/Delete.php index b1e24895db..7154926611 100644 --- a/CRM/Case/Form/Task/Delete.php +++ b/CRM/Case/Form/Task/Delete.php @@ -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(); } diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 128bf9c3ef..0d8e00cd5b 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -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 diff --git a/CRM/Contribute/Form/ContributionPage/Delete.php b/CRM/Contribute/Form/ContributionPage/Delete.php index e4da3b5a7b..45accd9a0f 100644 --- a/CRM/Contribute/Form/ContributionPage/Delete.php +++ b/CRM/Contribute/Form/ContributionPage/Delete.php @@ -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(); diff --git a/CRM/Contribute/Form/Task/Delete.php b/CRM/Contribute/Form/Task/Delete.php index 54947204b8..2fd4425187 100644 --- a/CRM/Contribute/Form/Task/Delete.php +++ b/CRM/Contribute/Form/Task/Delete.php @@ -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(); } diff --git a/CRM/Event/Form/ManageEvent.php b/CRM/Event/Form/ManageEvent.php index f8a3f0e413..039bd755ec 100644 --- a/CRM/Event/Form/ManageEvent.php +++ b/CRM/Event/Form/ManageEvent.php @@ -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); diff --git a/CRM/Event/Form/ManageEvent/Delete.php b/CRM/Event/Form/ManageEvent/Delete.php index a239f79715..3167d5964e 100644 --- a/CRM/Event/Form/ManageEvent/Delete.php +++ b/CRM/Event/Form/ManageEvent/Delete.php @@ -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.')); } } diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index d5a4a6593b..d25d32cf47 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -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) { diff --git a/CRM/Event/Form/Task/Delete.php b/CRM/Event/Form/Task/Delete.php index 69c3869a69..9735f7ee87 100644 --- a/CRM/Event/Form/Task/Delete.php +++ b/CRM/Event/Form/Task/Delete.php @@ -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) { diff --git a/CRM/Grant/Form/Grant.php b/CRM/Grant/Form/Grant.php index 1c8c6a90d2..8c6e9c0bab 100644 --- a/CRM/Grant/Form/Grant.php +++ b/CRM/Grant/Form/Grant.php @@ -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')); diff --git a/CRM/Grant/Form/Task/Delete.php b/CRM/Grant/Form/Task/Delete.php index 98203eac28..61152876a4 100644 --- a/CRM/Grant/Form/Task/Delete.php +++ b/CRM/Grant/Form/Task/Delete.php @@ -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.')); } } diff --git a/CRM/Grant/Form/Task/Update.php b/CRM/Grant/Form/Task/Update.php index 87d8ace324..394d0f328f 100644 --- a/CRM/Grant/Form/Task/Update.php +++ b/CRM/Grant/Form/Task/Update.php @@ -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.')); } } diff --git a/CRM/Mailing/Form/Browse.php b/CRM/Mailing/Form/Browse.php index 4d501fc7ad..fe2e552070 100644 --- a/CRM/Mailing/Form/Browse.php +++ b/CRM/Mailing/Form/Browse.php @@ -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(); diff --git a/CRM/Mailing/Page/Browse.php b/CRM/Mailing/Page/Browse.php index 26728c1562..1ab348fe38 100644 --- a/CRM/Mailing/Page/Browse.php +++ b/CRM/Mailing/Page/Browse.php @@ -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); diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 5f5d5f6474..f52a15dcc5 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -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) { diff --git a/CRM/Member/Form/MembershipRenewal.php b/CRM/Member/Form/MembershipRenewal.php index f0271a4f21..48e96187a2 100644 --- a/CRM/Member/Form/MembershipRenewal.php +++ b/CRM/Member/Form/MembershipRenewal.php @@ -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', diff --git a/CRM/Member/Form/Task/Delete.php b/CRM/Member/Form/Task/Delete.php index 6c1870a0bc..455d9fd503 100644 --- a/CRM/Member/Form/Task/Delete.php +++ b/CRM/Member/Form/Task/Delete.php @@ -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(); } diff --git a/CRM/PCP/Form/PCP.php b/CRM/PCP/Form/PCP.php index f0e52d80f2..0b76055680 100644 --- a/CRM/PCP/Form/PCP.php +++ b/CRM/PCP/Form/PCP.php @@ -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); diff --git a/CRM/Pledge/Form/Payment.php b/CRM/Pledge/Form/Payment.php index 83b8f2336e..1f733f6199 100644 --- a/CRM/Pledge/Form/Payment.php +++ b/CRM/Pledge/Form/Payment.php @@ -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); diff --git a/CRM/Pledge/Form/Pledge.php b/CRM/Pledge/Form/Pledge.php index bce71ce4d2..248cd4008a 100644 --- a/CRM/Pledge/Form/Pledge.php +++ b/CRM/Pledge/Form/Pledge.php @@ -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); diff --git a/CRM/Pledge/Form/Task/Delete.php b/CRM/Pledge/Form/Task/Delete.php index 8f2d8942d8..7784eff168 100644 --- a/CRM/Pledge/Form/Task/Delete.php +++ b/CRM/Pledge/Form/Task/Delete.php @@ -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(); } diff --git a/CRM/Price/BAO/PriceSet.php b/CRM/Price/BAO/PriceSet.php index b5d8a15535..a071a7925b 100644 --- a/CRM/Price/BAO/PriceSet.php +++ b/CRM/Price/BAO/PriceSet.php @@ -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; diff --git a/CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php b/CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php index 7f915ac22c..3020ab2469 100644 --- a/CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php +++ b/CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php @@ -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; diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 07ba3ed32d..a3400b0c22 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -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() { diff --git a/CRM/Utils/System/UnitTests.php b/CRM/Utils/System/UnitTests.php index d78ee6a005..9176383c85 100644 --- a/CRM/Utils/System/UnitTests.php +++ b/CRM/Utils/System/UnitTests.php @@ -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() { diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 54d6d0b84e..0c14597d9a 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -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() { diff --git a/tools/CRM/Auction/Form/Auction.php b/tools/CRM/Auction/Form/Auction.php index 3bc9a202a1..72409dcca5 100644 --- a/tools/CRM/Auction/Form/Auction.php +++ b/tools/CRM/Auction/Form/Auction.php @@ -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 || -- 2.25.1