Example #1
0
 /**
  * Retreive the group that have been granted access to a specific permission for this object
  *
  * @return string $group_perm name of the permission
  */
 public function getGroupPerm($group_perm)
 {
     if (!$this->handler->getPermissions()) {
         $this->setError("Trying to access a permission that does not exists for this object's handler");
         return false;
     }
     $icmspermissions_handler = new icms_ipf_permission_Handler($this->handler);
     $ret = $icmspermissions_handler->getGrantedGroups($group_perm, $this->id());
     if (count($ret) == 0) {
         return false;
     } else {
         return $ret;
     }
 }