Skip to content

Commit

Permalink
update: 添加更新策略和删除策略方法注释
Browse files Browse the repository at this point in the history
  • Loading branch information
lly0414 committed Aug 30, 2023
1 parent 90236ed commit 8dc9c98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
* @method static bool removePolicy(mixed ...$params) 当前策略移除授权规则
* @method static array getAllRoles() 获取所有角色
* @method static array getPolicy() 获取所有的角色的授权规则
* @method static bool updatePolicies(array $oldPolices, array $newPolicies) 更新策略
* @method static bool removePolicies(array $rules) 删除策略
* @method static array getRolesForUser(string $name, string ...$domain) 获取用户具有的角色
* @method static array getUsersForRole(string $name, string ...$domain) 获取具有角色的用户
* @method static bool hasRoleForUser(string $name, string $role, string ...$domain) 确定用户是否具有角色
Expand Down

0 comments on commit 8dc9c98

Please sign in to comment.