Skip to content

Commit 5398652

Browse files
committed
Add new PROJECT_CREATE permission
Introduce a new `PROJECT_CREATE` permission and add it to the ServiceAdministrator role. This permission will be used to control access to project creation, including visibility of a "Create project" button in the Staff Area and access to a project creation form. The button and form will be added in subsequent work.
1 parent 548ce68 commit 5398652

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

jobserver/authorization/permissions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class Permission(StrEnum):
2020

2121
ORG_CREATE = auto()
2222

23+
PROJECT_CREATE = auto()
2324
PROJECT_MANAGE = auto()
2425

2526
RELEASE_FILE_DELETE = auto()

jobserver/authorization/roles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ServiceAdministrator:
3131
]
3232
permissions = [
3333
Permission.USER_EDIT_PROJECT_ROLES,
34+
Permission.PROJECT_CREATE,
3435
]
3536

3637

0 commit comments

Comments
 (0)