mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 17:58:17 +08:00
Pre Merge pull request !560 from lion/lion
This commit is contained in:
commit
69095ec98b
@ -170,7 +170,7 @@ public class LoginHelper {
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public static boolean isTenantAdmin(Set<String> rolePermission) {
|
public static boolean isTenantAdmin(Set<String> rolePermission) {
|
||||||
return rolePermission.contains(TenantConstants.TENANT_ADMIN_ROLE_KEY);
|
return ObjectUtil.isNotEmpty(rolePermission) && rolePermission.contains(TenantConstants.TENANT_ADMIN_ROLE_KEY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user