系统管理员默认有阅览权限处理
This commit is contained in:
parent
83996ec549
commit
29ecababd6
Binary file not shown.
@ -3517,6 +3517,18 @@ public class PALRepositoryQueryAPIManager {
|
||||
if ("1".equals(permType)) {// 全集团,都有权限
|
||||
return true;
|
||||
}
|
||||
// 如果当前人是系统管理员角色或者兼职系统管理员角色,默认有权限
|
||||
String roleId = "d102c89d-55f3-4865-9d5c-c00b7f47b803";// 系统管理员
|
||||
if (roleId.equals(uc.getRoleModel().getId())) {
|
||||
return true;
|
||||
}
|
||||
// 兼职
|
||||
List<UserMapModel> adminUserMapModels = UserMapCache.getMapListOfUser(uc.getUID());
|
||||
for (UserMapModel mapModel : adminUserMapModels) {
|
||||
if (roleId.equals(mapModel.getRoleId())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
// 判断组织权限
|
||||
String orgPerm = bo.getString("ORGPERM");
|
||||
if (UtilString.isNotEmpty(orgPerm)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user