public function addCapability($user, $object, $capability)
public function addCapability($user, $object, $capability)
Parameters
PhabricatorUser | $user | |
PhabricatorPolicyInterface | $object | |
$capability |
Return
wild |
public function hasCapability($user, $object, $capability)
public function hasCapability($user, $object, $capability)
Parameters
PhabricatorUser | $user | |
PhabricatorPolicyInterface | $object | |
$capability |
Return
wild |
private function getUserKey($user)
private function getUserKey($user)
Parameters
PhabricatorUser | $user |
Return
wild |
private function getObjectKey($object)
private function getObjectKey($object)
Parameters
PhabricatorPolicyInterface | $object |
Return
wild |
private function resolveCapabilities()
private function resolveCapabilities()
Return
wild |
public static function loadHandleViewCapabilities($viewer, $handles, $objects)
public static function loadHandleViewCapabilities($viewer, $handles, $objects)
Parameters
$viewer | ||
$handles | ||
array | $objects |
Return
wild |