mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Merge pull request #204 from bitwarden/Permissions
Implemented Custom role and permissions
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: cea09a22e5...6ac6df75d7
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user