李昊 4 years ago
parent
commit
0225837fa1

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/GroupRepository.cs

@@ -264,7 +264,7 @@ namespace GxPress.Repository.Implement
             //获取当前用户的权限
             groupDetailResult.GroupUserRoleId = groupUser != null ? groupUser.GroupUserRoleId : 0;
             groupDetailResult.IsUDisturb = groupUser != null ? groupUser.IsUDisturb : false;
-            //groupDetailResult.IsAdmin = groupUser != null ? groupUser.UserId == groupDetailResult.UserId : false;
+            groupDetailResult.IsAdmin = groupDetail != null ? groupDetail.UserId == groupDetailResult.UserId : true;
             groupDetailResult.IsUser = groupUser != null ? groupUser.UserId == request.UserId : false;
             groupDetailResult.CreatedDate = groupDetail.CreatedDate;
             return groupDetailResult;