Skip to content

Commit 8dc9c98

Browse files
committed
update: 添加更新策略和删除策略方法注释
1 parent 90236ed commit 8dc9c98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Permission.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* @method static bool removePolicy(mixed ...$params) 当前策略移除授权规则
2828
* @method static array getAllRoles() 获取所有角色
2929
* @method static array getPolicy() 获取所有的角色的授权规则
30+
* @method static bool updatePolicies(array $oldPolices, array $newPolicies) 更新策略
31+
* @method static bool removePolicies(array $rules) 删除策略
3032
* @method static array getRolesForUser(string $name, string ...$domain) 获取用户具有的角色
3133
* @method static array getUsersForRole(string $name, string ...$domain) 获取具有角色的用户
3234
* @method static bool hasRoleForUser(string $name, string $role, string ...$domain) 确定用户是否具有角色

0 commit comments

Comments
 (0)