mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
only owner can access org settings
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 1cb3447bdd...3354f0b818
@@ -184,7 +184,7 @@ const routes: Routes = [
|
|||||||
path: 'settings',
|
path: 'settings',
|
||||||
component: OrgSettingsComponent,
|
component: OrgSettingsComponent,
|
||||||
canActivate: [OrganizationTypeGuardService],
|
canActivate: [OrganizationTypeGuardService],
|
||||||
data: { allowedTypes: [OrganizationUserType.Owner, OrganizationUserType.Admin] },
|
data: { allowedTypes: [OrganizationUserType.Owner] },
|
||||||
children: [
|
children: [
|
||||||
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
||||||
{ path: 'account', component: OrgAccountComponent, data: { titleId: 'myOrganization' } },
|
{ path: 'account', component: OrgAccountComponent, data: { titleId: 'myOrganization' } },
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
{{'tools' | i18n}}
|
{{'tools' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item" *ngIf="organization.isOwner">
|
||||||
<a class="nav-link" routerLink="settings" routerLinkActive="active">
|
<a class="nav-link" routerLink="settings" routerLinkActive="active">
|
||||||
<i class="fa fa-cogs"></i>
|
<i class="fa fa-cogs"></i>
|
||||||
{{'settings' | i18n}}
|
{{'settings' | i18n}}
|
||||||
|
|||||||
Reference in New Issue
Block a user