function hasObjectRights(&$hasRight, $method, $giveError = FALSE) { global $lll; parent::hasObjectRights($hasRight, $method, $giveError); if ($method == "modify") { $hasRight->generalRight = FALSE; } if ($hasRight->objectRight == TRUE && $method == "modify" && $this->disableModify()) { $hasRight->objectRight = FALSE; } if (!$hasRight->objectRight && $giveError) { handleError($lll["permission_denied"]); } }