コード例 #1
0
ファイル: userfield.php プロジェクト: alencarmo/OCF
 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"]);
     }
 }