Skip to content

Commit 38b4710

Browse files
mi1osDasio
authored andcommitted
Allow members to create projects by adding project:create scope to GLOBAL_MEMBER_SCOPES
1 parent 57cf747 commit 38b4710

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/@n8n/permissions/src/roles/scopes/global-scopes.ee.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,6 @@ export const GLOBAL_MEMBER_SCOPES: Scope[] = [
105105
'user:list',
106106
'variable:list',
107107
'variable:read',
108+
'project:create',
108109
'dataStore:list',
109110
];

packages/cli/src/controllers/project.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export class ProjectController {
5353
@Post('/')
5454
@GlobalScope('project:create')
5555
// Using admin as all plans that contain projects should allow admins at the very least
56-
@Licensed('feat:projectRole:admin')
5756
async createProject(req: AuthenticatedRequest, _res: Response, @Body payload: CreateProjectDto) {
5857
try {
5958
const project = await this.projectsService.createTeamProject(req.user, payload);

0 commit comments

Comments
 (0)