Skip to content

Commit 01683ca

Browse files
Legacy UI: Display Accounts Tab to Project Admins (apache#5408)
Co-authored-by: Pearl Dsilva <pearl1594@gmail.com>
1 parent b2fd1f6 commit 01683ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/legacy/scripts/projects.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,14 +987,19 @@
987987

988988
tabFilter: function(args) {
989989
var project = selectedProjectObj;
990-
var projectOwner = project.account;
990+
var projectOwners = project.owner;
991+
var projectOwner = []
992+
for (var i in projectOwners) {
993+
projectOwner.push(projectOwners[i].account)
994+
}
995+
991996
var currentAccount = args.context.users[0].account;
992997
var hiddenTabs = [];
993998

994999
if (!isAdmin() && !isDomainAdmin()) {
9951000
hiddenTabs.push('resources');
9961001

997-
if (currentAccount != projectOwner) {
1002+
if (!projectOwner.includes(currentAccount)) {
9981003
hiddenTabs.push('accounts');
9991004
hiddenTabs.push('invitations');
10001005
}

0 commit comments

Comments
 (0)