private function handleChildrenAuth($control, $tag, $node, $attributes) { $perms = explode(':', $attributes->access); $right = Manager::getPerms()->getRight($perms[1]); if (Manager::checkAccess($perms[0], $right)) { $this->handleChildren($control, $node); } }
public function checkAccess() { $result = true; $access = $this->property->access; if ($access && Manager::isLogged()) { $perms = explode(':', $access); $right = Manager::getPerms()->getRight($perms[1]); $result = Manager::checkAccess($perms[0], $right); } return $result; }