Handled Global and Project level permissions #403
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "hotchanges_projectPermission"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.