Don't show invitations tab if project invites are disabled

This commit is contained in:
bfederle 2012-02-07 14:31:19 -08:00
parent a77f04f5f6
commit b2930f5dd8
1 changed files with 4 additions and 0 deletions

View File

@ -785,6 +785,10 @@
if ((!isAdmin() && !isDomainAdmin()) &&
(currentAccount != projectOwner)) return ['accounts', 'invitations', 'resources'];
if (!cloudStack.projects.requireInvitation()) {
return ['invitations'];
}
return [];
},
tabs: {