Skip to content
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

Optional Nil Actions and Permissions in Entity Definitions #880

Open
tolgaOzen opened this issue Nov 28, 2023 · 1 comment · May be fixed by #1633
Open

Optional Nil Actions and Permissions in Entity Definitions #880

tolgaOzen opened this issue Nov 28, 2023 · 1 comment · May be fixed by #1633
Assignees
Labels
area/schema Issues related with modeling and schema. feature request New feature or request go Pull requests that update Go code

Comments

@tolgaOzen
Copy link
Member

Objective

Introduce the capability for actions and permissions within entity definitions to be optionally set to nil. This feature aims to enhance flexibility in permission management across different entities in our system.

Concept

  • Entities can have them set to nil.
  • This approach allows for dynamic and contextual assignment of capabilities depending on the entity's role or specific requirements.

Examples

entity user{
   action view = nil
   action contribute = nil
   action maintain = nil
   action manage = nil
}

entity product {
   relation parent @company @organization @team @user

   action view = parent.view
   action contribute = parent.contribute
   action maintain = parent.maintain
   action manage = parent.manage
}

In this example, if a user is assigned as the parent of a product, they should be able to perform these permissions.

Implementation

The implementation would require changes to the entity definition structure to accept nil as a valid value for actions/permissions.

@tolgaOzen tolgaOzen added feature request New feature or request area/schema Issues related with modeling and schema. go Pull requests that update Go code labels Nov 28, 2023
@tolgaOzen tolgaOzen moved this to Q4 2023 – Oct-Dec in Public Roadmap Nov 28, 2023
@saifxd7
Copy link
Contributor

saifxd7 commented Dec 9, 2023

Hi @tolgaOzen , I would like to work on this issue.
Can you assign to me?

@EgeAytin EgeAytin moved this from Q4 2023 – Oct-Dec to Q1 2024 – Jan-Mar in Public Roadmap Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Issues related with modeling and schema. feature request New feature or request go Pull requests that update Go code
Projects
Status: Q1 2024 – Jan-Mar
Development

Successfully merging a pull request may close this issue.

3 participants