marthaegrimaldi / marthaegrimaldi/food-ordering-application-using-react-native

Enatega Admin Dashboard : When logged-in as a Vendor, its allowing to add another vendor.

Open
#648 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When logged in as a Vendor, the system allows the user to add another vendor. It should not allow to add another vendor once its logged-in as a vendor.

To Reproduce
Steps to reproduce the behavior:

Go to 'Enatega Admin Dashboard'
Log in as a vendor, now see error there its allowing to Add another vendor.
Expected behavior
A Vendor should not have permission to create or add another vendor.
The "Add Vendor" option should be hidden or disabled for vendors.

Screenshots

Image
Desktop (please complete the following information):

OS: [e.g. Windows]
Browser [e.g. Chrome]
Version [e.g. Latest]
Activity

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Enatega Admin Dashboard with a vendor account and inspect the vendor-management entry point. The work is done when a vendor cannot access the Add Vendor action, while users with permission can still create vendors; verify both roles after the change.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
authorization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.