Skip to content

Conditionally render the admin button on the navbar #191

@nemvince

Description

@nemvince

Right now the button is only rendered if the user has admin role

const isAdmin = userRoles?.includes('admin');

This should be updated to render the button if the user has any roles that facilitate usage of the Admin UI

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingiris - webWork to be done on iris, the web

Type

No fields configured for Bug.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions