Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
PCBK-263: Logic correction for permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-bhorodia committed Jun 28, 2016
1 parent ca07c08 commit 387f48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Booking/Page/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function view() {
*/
function edit() {
if (!CRM_Core_Permission::check(array('administer CiviBooking', 'create and update bookings'))
|| !(CRM_Core_Permission::check('administer CiviBooking')
|| (!CRM_Core_Permission::check('administer CiviBooking')
&& $this->_action == CRM_Core_Action::DELETE)) {
CRM_Utils_System::permissionDenied();
CRM_Utils_System::civiExit();
Expand Down

0 comments on commit 387f48f

Please sign in to comment.