[WEB-4854] chore: project admin accesss to workspace admins (#7749)

* chore: project admin accesss to workspace admins

* chore: frontend changes

* chore: remove console.log

* chore: refactor permission decorator

* chore: role enum

* chore: rearrange role_choices
This commit is contained in:
Sangeetha 2025-09-11 14:16:36 +05:30 committed by GitHub
parent 11cd8d11e4
commit ec541c2557
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 92 additions and 29 deletions

View file

@ -18,6 +18,12 @@ from .base import BaseModel
ROLE_CHOICES = ((20, "Admin"), (15, "Member"), (5, "Guest"))
class ROLE(Enum):
ADMIN = 20
MEMBER = 15
GUEST = 5
class ProjectNetwork(Enum):
SECRET = 0
PUBLIC = 2