defguard
defguard copied to clipboard
Check unit test for user access to location
Check if there is a unit test checking if users that do not have access to a location are excluded from GW configuration.
We use this method when creating new devices and it does indeed create a configuration for a device in all netowrks, even if user is not allowed to access them.
While there is an is_authorized flag in DeviceNetworkInfo it seems to only be checked for MFA locations.