Example #1
0
 private function getSimpleRights(BaseObject $object)
 {
     $query = SimpleRightTable::getList(array('select' => array('ACCESS_CODE'), 'filter' => array('OBJECT_ID' => $object->getId())));
     $permissions = array();
     while ($row = $query->fetch()) {
         $permissions[] = $row['ACCESS_CODE'];
     }
     return $permissions;
 }
Example #2
0
 private function getSimpleRightsFromParent()
 {
     if ($this->simpleRightsFromParent !== null) {
         return $this->simpleRightsFromParent;
     }
     if ($this->object->getParentId()) {
         $this->simpleRightsFromParent = SimpleRightTable::getList(array('filter' => array('OBJECT_ID' => $this->object->getParentId())))->fetchAll();
     } else {
         $this->simpleRightsFromParent = array();
     }
     return $this->simpleRightsFromParent;
 }