Skip to content

Optional Nil Actions and Permissions in Entity Definitions #880

Open
@tolgaOzen

Description

@tolgaOzen

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.

Metadata

Metadata

Labels

area/schemaIssues related with modeling and schema.feature requestNew feature or requestgoPull requests that update Go code

Type

No type

Projects

Status

Q1 2024 – Jan-Mar

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions