From b2782842f79e70b4d30fc53ea5f83acc03c5c4ff Mon Sep 17 00:00:00 2001 From: nit Date: Tue, 7 Jun 2011 12:32:32 +0530 Subject: [PATCH] bug 9922 : My ISOs shouldnt list Featured ISOs when the user is not the owner of those isos. status 9922: resolved fixed --- api/src/com/cloud/api/BaseCmd.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/com/cloud/api/BaseCmd.java b/api/src/com/cloud/api/BaseCmd.java index b6b4ff57504..6e1cea88118 100755 --- a/api/src/com/cloud/api/BaseCmd.java +++ b/api/src/com/cloud/api/BaseCmd.java @@ -546,4 +546,8 @@ public abstract class BaseCmd { (accountType == Account.ACCOUNT_TYPE_DOMAIN_ADMIN) || (accountType == Account.ACCOUNT_TYPE_READ_ONLY_ADMIN)); } + + public static boolean isRootAdmin(short accountType) { + return ((accountType == Account.ACCOUNT_TYPE_ADMIN)); + } }