feat(core): Rebuild project roles to load from the database (#17909)

This commit is contained in:
Guillaume Jacquart
2025-08-28 11:00:31 +02:00
committed by GitHub
parent ab7998b441
commit f757790394
63 changed files with 546 additions and 305 deletions

View File

@@ -1,4 +1,4 @@
import { getRoleScopes } from '@n8n/permissions';
import { getRoleScopes, PROJECT_OWNER_ROLE_SLUG } from '@n8n/permissions';
import type {
GlobalRole,
ProjectRole,
@@ -76,8 +76,8 @@ beforeAll(async () => {
expectedProjectRoles = [
{
name: 'Project Owner',
role: 'project:personalOwner',
scopes: getRoleScopes('project:personalOwner'),
role: PROJECT_OWNER_ROLE_SLUG,
scopes: getRoleScopes(PROJECT_OWNER_ROLE_SLUG),
licensed: true,
description: 'Project Owner',
},