mirror of https://github.com/apache/cloudstack.git
Don't show invitations tab if project invites are disabled
This commit is contained in:
parent
a77f04f5f6
commit
b2930f5dd8
|
|
@ -785,6 +785,10 @@
|
|||
if ((!isAdmin() && !isDomainAdmin()) &&
|
||||
(currentAccount != projectOwner)) return ['accounts', 'invitations', 'resources'];
|
||||
|
||||
if (!cloudStack.projects.requireInvitation()) {
|
||||
return ['invitations'];
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
tabs: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue