ClusterCockpit / cc-backend

Web frontend and API backend server for ClusterCockpit Monitoring Framework
https://www.clustercockpit.org
MIT License
16 stars 14 forks source link

If user was authorized with API role the web view does not work correctly #179

Closed moebiusband73 closed 1 year ago

moebiusband73 commented 1 year ago

How to reproduce:

The error reported logged:

<3>[ERROR] /Users/jan/prg/cc-backend/web/web.go:118: Template error: template: home.tmpl:11:45: executing "content" at <.Roles.admin>: invalid value; expected auth.Role
spacehamster87 commented 1 year ago

Removed Role-Check on "Not API Role" when loading valid roles for frontend render: Frontend now renders correctly for combined role users.