[permission handling] Changing group permissions requires adapter restart
Describe the bug
- Create a new user
- Add the user to group
system.group.user - Logged in with the new user in another browser
- Set all object permissions for object to users group with admin
- Try to create a new object in
0_userdata.0with user - permissionError
- Reload the browser tab: still permissionError
- Log out and log in: permissionError
This solves the problem:
iobroker stop admin.0
iobroker start admin.0
Caching issue?
Bonus
This should be hidden if "create object" permission is missing
Versions:
- Adapter version: 6.2.22
Does it also needs a restart (and not only logoout/login) when you do a "Shift reload"? (To make sure not certein data are still cached in browser
@Apollon77 Yes. Seems like permissions are cached on server side?!

which js-controller? Yes they are bug shopud be updated on object changes ......
js-controller 4.0.23 node v16.17.0
Other way around (revoking object write)
It looks like the permissions are just evaluated on client side?! After removing the "object write" permissions I can still create new objects until the browser is refreshed. At least the server side should prevent that
I was able to create object "ok2"

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
⬆️