You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backend UI-Websocket: get user.globalRole instead of default guest role on AlertingConfigs (OpenEMS#2409)
* fetch user.globalRole instead of guest on AlertingConfigs
This commit is one of many prepare PRs / commits for a bigger PR:
SumStateAlert OpenEMS#2260
By Seperating the big OpenEMS#2260 into smaller commits we would like to make the review easier.
* handleSet and Get UserAlertingConfigs check for Role Admin or else false
helper Method introduced, that checks if the user for the Edge is an admin.
If that's the case, the user is allowed to set either other user settings or receive other userSettings
* Fixed logic error on userIsAdmin in handle Get and SetUserAlertingConfig
* changed return type from Boolean to boolean on userIsAdmin method
---------
Co-authored-by: Kai Jeschek <[email protected]>
Co-authored-by: Kai Jeschek <[email protected]>
0 commit comments