mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
feat(core): Rebuild project roles to load from the database (#17909)
This commit is contained in:
committed by
GitHub
parent
ab7998b441
commit
f757790394
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user