bug 12658

Allow ROOT admin to manage projects, even if they are not the project
owner

status 12658: resolved fixed
This commit is contained in:
bfederle 2011-12-22 13:57:02 -08:00
parent c07d711266
commit 9fab3e68b5
1 changed files with 4 additions and 2 deletions

View File

@ -85,8 +85,10 @@
};
// Only show management tabs to owner of project
if (cloudStack.context.projects &&
(cloudStack.context.projects[0].account == cloudStack.context.users[0].account)) {
if (isAdmin() || (
cloudStack.context.projects &&
(cloudStack.context.projects[0].account == cloudStack.context.users[0].account)
)) {
tabs.users = function() {
return $('<div>').addClass('management').data('tab-title', 'Users');
};