DefGuard / defguard

Enterprise, fast, secure VPN & SSO platform with hardware keys, 2FA/MFA
https://defguard.net
Other
744 stars 22 forks source link

Block "Add new device" button if user has no network access #596

Open j-chmielewski opened 3 months ago

j-chmielewski commented 3 months ago

If there are no networks, or all networks have groups assigned, there is the possibility that the user has access to no network. In this case the "Add new device" button should be disabled.

Implementation suggestion:

Extend UserProfile type with networks property and modify appropriate API endpoint to return user-accessible networks.