/** * Checks if the user has a specific access on this object * * @param string $gperm_name name of the permission to test * @return boolean : TRUE if user has access, false if not **/ function accessGranted($perm_name) { $smartpermissions_handler = new SmartobjectPermissionHandler($this->handler); return $smartpermissions_handler->accessGranted($perm_name, $this->id()); }