openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

[Auth] Editor Role for MainUI

Open lsafelix75 opened this issue 3 years ago • 2 comments

Hi,

I have a use case that requires a different type user to have a specific role to just edit the MainUI Pages and Widgets. Is it possible? As far as i know, only administrator is allowed to do it.

lsafelix75 avatar Sep 24 '22 02:09 lsafelix75

Unfortunately not, there are only two roles at the moment, user and administrator. An editor role could be possible, but this would involve allowing full access to the /rest/ui/components API (on top of all user role operations), and make UI changes as well.

ghys avatar Sep 24 '22 20:09 ghys

OK, i guess it is just creating a new role called "editor" and apply role annotation. Let me know if requirement is necessary for your case, otherwise i will make necessary changes and just commit on my own repository.

lsafelix75 avatar Sep 26 '22 13:09 lsafelix75