Implemented Custom role and permissions
This commit is contained in:
parent
0330641a14
commit
c895ad0380
|
@ -161,7 +161,7 @@ export class ListCommand {
|
|||
|
||||
try {
|
||||
let response: ApiListResponse<ApiCollectionResponse>;
|
||||
if (organization.isAdmin) {
|
||||
if (organization.canManageAllCollections) {
|
||||
response = await this.apiService.getCollections(cmd.organizationid);
|
||||
} else {
|
||||
response = await this.apiService.getUserCollections();
|
||||
|
|
Loading…
Reference in New Issue