only owner can access org settings

This commit is contained in:
Kyle Spearrin 2018-07-17 15:57:04 -04:00
parent 06de7b5176
commit d1395e37fd
3 changed files with 3 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 1cb3447bdd3531d08eb77a8b7a0ad65124428a09
Subproject commit 3354f0b8180c319b4ae72c062874e9f8f5a1fe61

View File

@ -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' } },

View File

@ -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}}