-
-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What type of request is this?
New feature idea
Clear and concise description of the feature you are proposing
Adding new role that will only be able to view documents in an organization.
Additional context
hey @CorentinTh! Thanks for merging my PR (#660)!
I found this issue when I was trying to figure out what it would take to add a new role:
export const ORGANIZATION_ROLES = {
MEMBER: 'member',
OWNER: 'owner',
ADMIN: 'admin',
READONLY: 'readonly', // <-- this one :)
} as const;so that users with this role will only be able to view documents (and nothing else). Have you ever thought about adding something like this? And if yes, do you have a preference on how this should be implemented? Maybe something like extending the ensureUserIsInOrganization check with a required role?
Validations
- Check the feature is not already implemented in the project.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Check that the feature is technically feasible and aligns with the project's goals.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request