org owner check on side nav menu

This commit is contained in:
Kyle Spearrin 2017-04-12 13:06:18 -04:00
parent 5f2c2a8064
commit f8c5f31f97
2 changed files with 6 additions and 2 deletions

View File

@ -38,4 +38,8 @@ angular
$state.go('backend.org.dashboard', { orgId: org.id });
};
$scope.isOrgOwner = function (org) {
return org.type === 0;
};
});

View File

@ -46,12 +46,12 @@
<i class="fa fa-share-alt fa-fw"></i> <span>Subvaults</span>
</a>
</li>
<li ng-class="{active: $state.is('backend.org.billing')}">
<li ng-class="{active: $state.is('backend.org.billing')}" ng-if="isOrgOwner(orgProfile)">
<a ui-sref="backend.org.billing({orgId: params.orgId})">
<i class="fa fa-credit-card fa-fw"></i> <span>Billing</span>
</a>
</li>
<li ng-class="{active: $state.is('backend.org.settings')}">
<li ng-class="{active: $state.is('backend.org.settings')}" ng-if="isOrgOwner(orgProfile)">
<a ui-sref="backend.org.settings({orgId: params.orgId})">
<i class="fa fa-gears fa-fw"></i> <span>Settings</span>
</a>