Esempio n. 1
0
 /**
  * Set the permissions of an item for a specific user or group
  * @param string $itemType
  * @param string $itemSource
  * @param int $shareType SHARE_TYPE_USER, SHARE_TYPE_GROUP, or SHARE_TYPE_LINK
  * @param string $shareWith User or group the item is being shared with
  * @param int $permissions CRUDS permissions
  * @return boolean true on success or false on failure
  */
 public static function setPermissions($itemType, $itemSource, $shareType, $shareWith, $permissions)
 {
     return \OC\Share\Share::setPermissions($itemType, $itemSource, $shareType, $shareWith, $permissions);
 }