From c895ad0380864899507a66417900d258d665d5d1 Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 22 Dec 2020 13:59:07 -0500 Subject: [PATCH] Implemented Custom role and permissions --- src/commands/list.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/list.command.ts b/src/commands/list.command.ts index b28f573c93..c36fc32fdc 100644 --- a/src/commands/list.command.ts +++ b/src/commands/list.command.ts @@ -161,7 +161,7 @@ export class ListCommand { try { let response: ApiListResponse; - if (organization.isAdmin) { + if (organization.canManageAllCollections) { response = await this.apiService.getCollections(cmd.organizationid); } else { response = await this.apiService.getUserCollections();