李昊 4 years ago
parent
commit
7d22a03a65

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

@@ -248,7 +248,7 @@ namespace GxPress.Repository.Implement
                 .Where(nameof(GroupUser.GroupId), request.GroupId));
             //获取当前用户的权限
             groupDetailResult.GroupUserRoleId = groupUser != null ? groupUser.GroupUserRoleId : 0;
-            groupDetailResult.IsUDisturb = groupUser.IsUDisturb;
+            groupDetailResult.IsUDisturb = groupUser != null ? groupUser.IsUDisturb : false;
             return groupDetailResult;
         }
         /// <summary>