/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "upload") { return ACTION_CREATE; } return parent::getActionforACL(); }
/** * Get the name of the resource being accessed * * @return String */ function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "history" || ($action = "historysearch" || ($action = "changedays" || ($action = "complete")))) { return ACTION_LIST; } if ($action == "issuepayslips") { } return parent::getActionforACL(); }
public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "updatestatus") { return ACTION_EDIT; } if ($action == "events" || $action == "calendar") { return ACTION_VIEW; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "request" || $action == "processrequest" || $action == "upload") { return ACTION_VIEW; } if ($action == "approve" || $action == "forapproval") { return ACTION_APPROVE; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "processroles") { return ACTION_CREATE; } if ($action == "processroles" && !isEmptyString($this->_getParam('id'))) { return ACTION_EDIT; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "updatestatus") { return ACTION_APPROVE; } if ($action == "logo" || $action == "updatestatus" || $action == "processlogo" || $action == "croplogo") { return ACTION_EDIT; } return parent::getActionforACL(); }
/** * Get the name of the resource being accessed * * @return String */ function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "processvariables" || $action == "processglobalconfig" || $action == "add" || ($action = "leave" || ($action = "leavecreate" || ($action = "leaveindex" || ($action = "shifts" || ($action = "shiftscreate" || ($action = "schedulecreate"))))))) { return ACTION_EDIT; } if ($action == "variables" || $action == "globalconfig" || ($action = "leavelistsearch" || ($action = "shiftslistsearch"))) { return ACTION_LIST; // return ACTION_VIEW; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "add" || $action == "other" || $action == "processother" || $action == "processadd") { return ACTION_CREATE; } if ($action == "resetpassword" || $action == "inviteuser") { return ACTION_EDIT; } if ($action == "view" || $action == "picture" || $action == "processpicture" || $action == "uploadpicture" || $action == "croppicture" || $action == "changepassword" || $action == "processchangepassword" || $action == "changeusername" || $action == "processchangeusername" || $action == "changeemail" || $action == "processchangeemail") { return ACTION_VIEW; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); if ($action == "checkin" || $action == "checkout" || $action == "processattendance" || $action == "submit" || $action == "request") { if ($action == "checkin" && $this->_getParam('type') == 3) { return ACTION_DELETE; } return ACTION_CREATE; } if ($action == "attendance" || $action == "attendancesearch") { return ACTION_LIST; } if ($action == "approve" || $action == "forapproval") { return ACTION_APPROVE; } return parent::getActionforACL(); }
/** * Override unknown actions to enable ACL checking * * @see SecureController::getActionforACL() * * @return String */ public function getActionforACL() { $action = strtolower($this->getRequest()->getActionName()); return parent::getActionforACL(); }