Frontend: CRUD actions should be restricted according to admin roles #794
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Frontend: CRUD actions will now be restricted according to admin roles.
Additionally there are following buttons which require the stated access levels:
Related Issues
#793
Steps to Test
In the same manner, login using admins have other roles and verify respective CRUD actions access.
Note that we can also navigate to object create/update page directly using URL.
For example, to create an offer, we can navigate directly to <BASE_URL>/offer/create
Checklist
Additional Info
There is also this minor label issue that I've fixed on
frontend/src/modules/InvoiceModule/Forms/InvoiceForm.jsx
.The label should have been 'Sent' but it was 'Pending' instead.