Skip to content

Commit b55fb5f

Browse files
committed
bug 12270
-Don't show user/invite management tabs for non-project-admin
1 parent 5ad4476 commit b55fb5f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎ui/scripts/ui-custom/projects.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
}
2424
};
2525

26-
if (cloudStack.context.projects) {
26+
// Only show management tabs to owner of project
27+
if (cloudStack.context.projects &&
28+
(cloudStack.context.projects[0].account == cloudStack.context.users[0].account)) {
2729
tabs['Users'] = function() {
2830
return $('<div>').addClass('management');
2931
};

0 commit comments

Comments
 (0)