feat: Implement runtine check for enterprise features (no-changelog) (#4676)
* feat: Implement runtine check for enterprise features
This commit is contained in:
@@ -78,6 +78,15 @@ export async function getInstanceOwner(): Promise<User> {
|
||||
return owner;
|
||||
}
|
||||
|
||||
export async function getRole(scope: Role['scope'], name: Role['name']): Promise<Role> {
|
||||
return Db.collections.Role.findOneOrFail({
|
||||
where: {
|
||||
name,
|
||||
scope,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the n8n instance base URL without trailing slash.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user