mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
[AC-1139] Added back the deprecation of methods canEditAssignedCollections, canDeleteAssignedCollections, canViewAssignedCollections
This commit is contained in:
@@ -184,14 +184,29 @@ export class Organization {
|
|||||||
return this.canEditAnyCollection || this.canDeleteAnyCollection;
|
return this.canEditAnyCollection || this.canDeleteAnyCollection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* This is deprecated with the introduction of Flexible Collections.
|
||||||
|
* This will always return false if FlexibleCollections flag is on.
|
||||||
|
*/
|
||||||
get canEditAssignedCollections() {
|
get canEditAssignedCollections() {
|
||||||
return this.isManager || this.permissions.editAssignedCollections;
|
return this.isManager || this.permissions.editAssignedCollections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* This is deprecated with the introduction of Flexible Collections.
|
||||||
|
* This will always return false if FlexibleCollections flag is on.
|
||||||
|
*/
|
||||||
get canDeleteAssignedCollections() {
|
get canDeleteAssignedCollections() {
|
||||||
return this.isManager || this.permissions.deleteAssignedCollections;
|
return this.isManager || this.permissions.deleteAssignedCollections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* This is deprecated with the introduction of Flexible Collections.
|
||||||
|
* This will always return false if FlexibleCollections flag is on.
|
||||||
|
*/
|
||||||
get canViewAssignedCollections() {
|
get canViewAssignedCollections() {
|
||||||
return this.canDeleteAssignedCollections || this.canEditAssignedCollections;
|
return this.canDeleteAssignedCollections || this.canEditAssignedCollections;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user