|
|
@@ -97,14 +97,17 @@ public class ProjectTaskServiceImpl implements ProjectTaskService {
|
|
|
}
|
|
|
|
|
|
private void pushRoleType(ProjectListInput in) {
|
|
|
- if (SecurityUtils.hashRoles(UserRolesType.CEO.getCode())){
|
|
|
- in.setRoleType(1);
|
|
|
- }else if (SecurityUtils.hashRoles(UserRolesType.ADMIN.getCode())){
|
|
|
- in.setRoleType(3);
|
|
|
- }else if (SecurityUtils.hashRoles(UserRolesType.MANAGE.getCode())){
|
|
|
- in.setRoleType(2);
|
|
|
+ if (in.getRoleType()==null){
|
|
|
+ if (SecurityUtils.hashRoles(UserRolesType.CEO.getCode())){
|
|
|
+ in.setRoleType(1);
|
|
|
+ }else if (SecurityUtils.hashRoles(UserRolesType.ADMIN.getCode())){
|
|
|
+ in.setRoleType(3);
|
|
|
+ }else if (SecurityUtils.hashRoles(UserRolesType.MANAGE.getCode())){
|
|
|
+ in.setRoleType(2);
|
|
|
+ }else {
|
|
|
+ in.setRoleType(0);
|
|
|
+ }
|
|
|
}
|
|
|
- if (in.getRoleType()==null)in.setRoleType(0);
|
|
|
}
|
|
|
|
|
|
|