代码还原

This commit is contained in:
xiaozhequ
2024-06-18 15:49:10 +08:00
parent 62884bcc15
commit 2fcdb6b4b6

View File

@@ -129,12 +129,12 @@ public class CourseManageApi extends ApiBaseController{
List<String> orgIds = userOrgIds.getIds();
// if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
// dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
// }else {
// dto.setIsSystemAdmin(false);
// }
dto.setIsSystemAdmin(false);
if(userOrgIds.getPermissions().containsKey(UserOrgIds.IsSystemAdminKey)){
dto.setIsSystemAdmin(userOrgIds.getPermissions().get(UserOrgIds.IsSystemAdminKey));
}else {
dto.setIsSystemAdmin(false);
}
// dto.setIsSystemAdmin(false);
String ids="";
if(userOrgIds.getIds()!=null && !userOrgIds.getIds().isEmpty())
{