Skip to content

Commit

Permalink
add create permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Jan 6, 2023
1 parent 4aff202 commit 6cf12e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ai/backend/common/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class BasePermission(AbstractPermission):


class ProjectPermission(AbstractPermission):
CREATE_PROJECT = "create-project"
READ_PROJECT = "read-project"
MODIFY_PROJECT = "modify-project"
DELETE_PROJECT = "delete-project"
Expand All @@ -240,6 +241,7 @@ class ProjectPermission(AbstractPermission):


class DomainPermission(AbstractPermission):
CREATE_DOMAIN = "create-domain"
READ_DOMAIN = "read-domain"
MODIFY_DOMAIN = "modify-domain"
DELETE_DOMAIN = "delete-domain"
Expand All @@ -252,6 +254,7 @@ class DomainPermission(AbstractPermission):


class UserPermission(AbstractPermission):
CREATE_USER = "create-user"
READ_USER = "read-user"
MODIFY_USER = "modify-user"
DELETE_USER = "delete-user"
Expand Down

0 comments on commit 6cf12e1

Please sign in to comment.