Skip to content

anurag joshi challenge completed #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

centodiechi
Copy link

Title: Improved Distributor Permissions Handling (Includes & Excludes)
Description:

This PR enhances the AddDistributor function to:
✅ Automatically grant all sub-regions when a broader region (e.g., INDIA) is included.
✅ Properly remove all sub-regions when a region (e.g., KARNATAKA-INDIA) is excluded.
✅ Ensure parent-child permission validation—distributors cannot be assigned regions their parent lacks access to.
✅ Improve permission checking logic to correctly inherit and validate permissions.

Screenshots:

Screenshot from 2025-02-25 18-40-30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant