Merge pull request #204 from bitwarden/Permissions

Implemented Custom role and permissions
This commit is contained in:
Addison Beck 2021-01-13 10:00:03 -05:00 committed by GitHub
commit 998e07d897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit cea09a22e533ef3598bb497ba0503c2fcd5b2dc1
Subproject commit 6ac6df75d7a9bd5ea58f5d8310f1b3e34abd2bde

View File

@ -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();