Commit 4ce7e71a authored by 赵啸非's avatar 赵啸非

添加部门信息表

parent 5f5fae43
......@@ -45,11 +45,14 @@ public class ResourceController extends BaseCRUDJsonBodyMappingController<Resour
Map<String, Object> statsus = new HashMap<String, Object>();
statsus.put("authType", AuthType.getEnumMap());
statsus.put("sourceType", SourceType.getEnumMap());
if (!ObjectUtils.isEmpty(context.getUser())&&context.getUser().isAdmin()) {
if(!ObjectUtils.isEmpty(context.getUser())){
if (context.getUser().isAdmin()) {
statsus.put("userType", IBaseEnum.getEnumMap(UserType.class));
} else {
statsus.put("userType", UserType.findByValue(getCurUser().getUserType()));
}
}
model.put(KEY_RESULT_DICT, statsus);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment