mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Implemented Custom role and permissions (#237)
* Implemented Custom role and permissions * converted Permissions interface into a class * formatting fix
This commit is contained in:
@@ -162,7 +162,7 @@ export class AddEditComponent implements OnInit {
|
||||
orgs.sort(Utils.getSortFunction(this.i18nService, 'name')).forEach((o) => {
|
||||
if (o.enabled && o.status === OrganizationUserStatusType.Confirmed) {
|
||||
this.ownershipOptions.push({ name: o.name, value: o.id });
|
||||
if (policies != null && o.usePolicies && !o.isAdmin && this.allowPersonal) {
|
||||
if (policies != null && o.usePolicies && !o.canManagePolicies && this.allowPersonal) {
|
||||
for (const policy of policies) {
|
||||
if (policy.organizationId === o.id && policy.enabled) {
|
||||
this.allowPersonal = false;
|
||||
|
||||
Reference in New Issue
Block a user