|
@@ -118,7 +118,7 @@ public class TmDepartmentServiceImpl extends ServiceImpl<ITmDepartmentMapper, Tm
|
|
if(tmUserRoles.size() >0){
|
|
if(tmUserRoles.size() >0){
|
|
TmUserRole tmUserRole = tmUserRoles.get(0);
|
|
TmUserRole tmUserRole = tmUserRoles.get(0);
|
|
TmRole tmRole = tmRoleService.getById(tmUserRole.getRoleId());
|
|
TmRole tmRole = tmRoleService.getById(tmUserRole.getRoleId());
|
|
- if(tmRole != null && (tmRole.getRoleKey().equals("admin-ordinary") || tmRole.getRoleKey().equals("admin-dept"))){
|
|
|
|
|
|
+ if(tmRole != null && tmRole.getRoleKey().equals("admin-ordinary")){
|
|
return Arrays.asList(this.getById(tmUser.getDeptId()));
|
|
return Arrays.asList(this.getById(tmUser.getDeptId()));
|
|
}
|
|
}
|
|
}
|
|
}
|