mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Add condition for device no longer existing when filtering users.
This commit is contained in:
parent
4727adaa63
commit
cefb7d14a8
@ -2091,6 +2091,11 @@ namespace Remotely.Server.Services
|
||||
.ThenInclude(x => x.Users)
|
||||
.FirstOrDefault(x => x.ID == deviceID);
|
||||
|
||||
if (device is null)
|
||||
{
|
||||
return Array.Empty<string>();
|
||||
}
|
||||
|
||||
var orgUsers = dbContext.Users
|
||||
.Where(user =>
|
||||
user.OrganizationID == device.OrganizationID &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user