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