topcoder-platform / micro-frontends-taas-admin-app

taas-admin-app for managing taas administrative activities
MIT License
0 stars 5 forks source link

[$30] Better wordings for showing Permission restrictions #6

Closed sandhiyakavi closed 3 years ago

sandhiyakavi commented 3 years ago

Description:

Users other than BookingManager/Admin if they try to access the Taas Admin app. Now the text "Error: You don't have access to view memberRate" is displayed.

image

Instead of that can we have other text like "You don't have permission to access this page" or hide the "TAAS admin" option itself in the top nav bar ?

nkumar-topcoder commented 3 years ago

@sandhiyakavi for user other than BM/admin role - plan is - not show taas-admin icon. This will be implemented. cc @maxceem

maxceem commented 3 years ago

Summary:

Example:

maxceem commented 3 years ago

@MadOPcode would you like to handle it as a private task? The prize is mentioned in the issue description - $30.

Working branch: dev Submission: PR

MadOPcode commented 3 years ago

@maxceem yes I'm ready to make a PR.

maxceem commented 3 years ago

ok, please, make PR when it's ready

MadOPcode commented 3 years ago

@maxceem although I have a question first. The HOC component withAuthentication either displays or hides the whole page including the sidebar with navigation menu. So if the user doesn't have required role(s) the navigation menu will not be on the page. Should the sidebar with navigation menu still be visible if the user does not have required role(s)?

maxceem commented 3 years ago

That's a good question. Let's keep it simple for now - the whole page would be hidden with sidebar, if wee need to keep sidebar visible in the future we would think for another solution.

sandhiyakavi commented 3 years ago

Verified on Dev Env.

image

sandhiyakavi commented 3 years ago

Verified on Prod Env with @nkumar-topcoder