UoaWDCC / aeyb-monitor

7 stars 0 forks source link

Aeyb/#129 if the user cannot do something dont show the button #136

Closed ejiang25 closed 1 year ago

ejiang25 commented 1 year ago

Closes: [#129 ]

What was done: Added a condition for rendering certain components that require specific permissions.

How to test: Create roles with certain perms and check components don't render correctly

Screenshots of UI changes (optional):

TylerDonghwi commented 1 year ago

image Sorry but forgot to spot this here, can you hide this save button if a user doesn't have a "Manage roles" perm too?

TylerDonghwi commented 1 year ago

yeah everything looks good, works perfectly fine, just change the import directories so it is relative path please.