mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
This commit is contained in:
@@ -564,7 +564,7 @@ export class WorkflowsController {
|
||||
@Post('/with-node-types')
|
||||
async getWorkflowsWithNodesIncluded(req: AuthenticatedRequest, res: express.Response) {
|
||||
try {
|
||||
const hasPermission = req.user.role.slug === ROLE.Owner || req.user.role.slug === ROLE.Admin;
|
||||
const hasPermission = req.user.role === ROLE.Owner || req.user.role === ROLE.Admin;
|
||||
|
||||
if (!hasPermission) {
|
||||
res.json({ data: [], count: 0 });
|
||||
|
||||
Reference in New Issue
Block a user