コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 /**
  * 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();
 }
コード例 #5
0
 /**
  * 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();
 }
コード例 #6
0
 /**
  * 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();
 }
コード例 #7
0
 /**
  * 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();
 }
コード例 #8
0
 /**
  * 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();
 }
コード例 #9
0
 /**
  * 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();
 }
コード例 #10
0
 /**
  * Override unknown actions to enable ACL checking 
  * 
  * @see SecureController::getActionforACL()
  *
  * @return String
  */
 public function getActionforACL()
 {
     $action = strtolower($this->getRequest()->getActionName());
     return parent::getActionforACL();
 }