mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[AC-1529] Update settings tab visibility to include device approvals (#5855)
* fix: update show org settings function, add explicit canManageDeviceApprovals helper, refs AC-1529 * fix: add device approval in org-redirect guard and update passed permission, refs AC-1529
This commit is contained in:
@@ -70,6 +70,9 @@ function getSettingsRoute(organization: Organization) {
|
||||
if (organization.canManageScim) {
|
||||
return "scim";
|
||||
}
|
||||
if (organization.canManageDeviceApprovals) {
|
||||
return "device-approvals";
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
routerLink="device-approvals"
|
||||
class="list-group-item"
|
||||
routerLinkActive="active"
|
||||
*ngIf="org.canManageUsersPassword"
|
||||
*ngIf="org.canManageDeviceApprovals"
|
||||
>
|
||||
{{ "deviceApprovals" | i18n }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user