Handled Global and Project level permissions #403

Merged
pramod.mahajan merged 1 commits from hotchanges_projectPermission into Refactor_Directory 2025-09-16 10:43:31 +00:00
Collaborator

Created a global hook useHasUserPermission to manage user permissions across the application. The hook leverages the currently selected project (useSelectedProject), the user profile (useProfile), and project-level permissions (useAllProjectLevelPermissions) to determine if a specific permission is granted. It returns a boolean value, enabling components such as ProjectNav to conditionally render UI elements based on the user’s access rights.

Created a global hook useHasUserPermission to manage user permissions across the application. The hook leverages the currently selected project (**useSelectedProject),** the user profile **(useProfile)**, and project-level permissions (useAllProjectLevelPermissions) to determine if a specific permission is granted. It returns a boolean value, enabling components such as ProjectNav to conditionally render UI elements based on the user’s access rights.
pramod.mahajan added 1 commit 2025-09-16 10:43:17 +00:00
pramod.mahajan merged commit 7ef10e3e5b into Refactor_Directory 2025-09-16 10:43:31 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/marco.pms.web#403
No description provided.