lyhzzz 1 năm trước cách đây
mục cha
commit
fde63ef71a

+ 1 - 1
src/main/java/com/fdkankan/fusion/service/impl/TmDepartmentServiceImpl.java

@@ -118,7 +118,7 @@ public class TmDepartmentServiceImpl extends ServiceImpl<ITmDepartmentMapper, Tm
         if(tmUserRoles.size() >0){
             TmUserRole tmUserRole = tmUserRoles.get(0);
             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()));
             }
         }