/** * Check if the currently logged-in user has a certain privilege on a * node. * * @param string $node The full nodename of the node for which to check * access privileges. (modulename.nodename notation). * @param string $privilege The privilege to check (atkaction). * * @return bool True if the user has the privilege, false if not. */ public function allowed($node, $privilege) { if (isset($this->m_resultallowed['all'])) { return $this->m_resultallowed['all']; } if (isset($this->m_resultallowed[$node . '.' . $privilege])) { return $this->m_resultallowed[$node . '.' . $privilege]; } return parent::allowed($node, $privilege); }