Fix bug selecting permission groups on private mode
Steps to reproduce
- create a device:
- set visibility
internal
- select a permission group (where you're admin)
- set visibility
private
- Problem:
- you can't save the form
- the error message of visibility component says you have to remove the groups, but the permission groups selector is not shown on
private
and you can not delete the selected group
- to have to change to
internal
again and remove the groups there and go back to private
Solution propose
- always show permission groups selector and display additional error message