mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 03:03:43 +00:00
[PM-11162] Assign To Collections Permission Update (#11367)
Only users with Manage/Edit permissions will be allowed to Assign To Collections. If the user has Can Edit Except Password the collections dropdown will be disabled. --------- Co-authored-by: Matt Bishop <mbishop@bitwarden.com> Co-authored-by: kejaeger <138028972+kejaeger@users.noreply.github.com>
This commit is contained in:
@@ -142,6 +142,13 @@ export class CipherView implements View, InitializerMetadata {
|
||||
);
|
||||
}
|
||||
|
||||
get canAssignToCollections(): boolean {
|
||||
if (this.organizationId == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return this.edit && this.viewPassword;
|
||||
}
|
||||
/**
|
||||
* Determines if the cipher can be launched in a new browser tab.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user