Skip to content

anurag joshi challenge completed#191

Open
centodiechi wants to merge 1 commit intoRealImage:masterfrom
centodiechi:master
Open

anurag joshi challenge completed#191
centodiechi wants to merge 1 commit intoRealImage:masterfrom
centodiechi:master

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