コード例 #1
0
ファイル: type.php プロジェクト: nemein/openpsa
 /**
  * Checks whether the current user has the given privilege on the storage backend.
  *
  * The storage backend is responsible for the actual execution of this operation,
  * so this is merely a shortcut.
  *
  * @param string $privilege The privilege to check against.
  * @return boolean true if the user has the permission, false otherwise.
  */
 function can_do($privilege)
 {
     return $this->storage->can_do($privilege);
 }