From 9fab3e68b50772868417c8e4b286f1c948124db5 Mon Sep 17 00:00:00 2001 From: bfederle Date: Thu, 22 Dec 2011 13:57:02 -0800 Subject: [PATCH] bug 12658 Allow ROOT admin to manage projects, even if they are not the project owner status 12658: resolved fixed --- ui/scripts/ui-custom/projects.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/ui-custom/projects.js b/ui/scripts/ui-custom/projects.js index c362e918bbc..e992d638ba5 100644 --- a/ui/scripts/ui-custom/projects.js +++ b/ui/scripts/ui-custom/projects.js @@ -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 $('
').addClass('management').data('tab-title', 'Users'); };