only owner can access org settings
This commit is contained in:
parent
06de7b5176
commit
d1395e37fd
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 1cb3447bdd3531d08eb77a8b7a0ad65124428a09
|
||||
Subproject commit 3354f0b8180c319b4ae72c062874e9f8f5a1fe61
|
|
@ -184,7 +184,7 @@ const routes: Routes = [
|
|||
path: 'settings',
|
||||
component: OrgSettingsComponent,
|
||||
canActivate: [OrganizationTypeGuardService],
|
||||
data: { allowedTypes: [OrganizationUserType.Owner, OrganizationUserType.Admin] },
|
||||
data: { allowedTypes: [OrganizationUserType.Owner] },
|
||||
children: [
|
||||
{ path: '', pathMatch: 'full', redirectTo: 'account' },
|
||||
{ path: 'account', component: OrgAccountComponent, data: { titleId: 'myOrganization' } },
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
{{'tools' | i18n}}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<li class="nav-item" *ngIf="organization.isOwner">
|
||||
<a class="nav-link" routerLink="settings" routerLinkActive="active">
|
||||
<i class="fa fa-cogs"></i>
|
||||
{{'settings' | i18n}}
|
||||
|
|
Loading…
Reference in New Issue