Skip to content

Commit

Permalink
Include device groups with 0 links.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Mar 8, 2020
1 parent 49a4c85 commit 5b852ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/Services/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ public IEnumerable<DeviceGroup> GetDeviceGroups(string username)
x.OrganizationID == user.OrganizationID &&
(
user.IsAdministrator ||
x.PermissionLinks.Count == 0 ||
x.PermissionLinks.Any(x=>x.UserID == user.Id)
)
) ?? Enumerable.Empty<DeviceGroup>();
Expand Down

0 comments on commit 5b852ae

Please sign in to comment.