Ejemplo n.º 1
0
 public function refreshACL()
 {
     if ($this->aclgroup->id != $this->aclgroup_id) {
         $this->aclgroup = ACLGroup::find_by_id($this->aclgroup_id);
     }
     return $this->aclgroup;
 }
 protected function load_group($id = null)
 {
     if (!$id) {
         $id = $this->GetData('group_id');
     }
     $group = ACLGroup::find_by_id($id);
     if (!$group) {
         throw new Error404('Unable to find ACL Group');
     }
     return $group;
 }