bug 9922 : My ISOs shouldnt list Featured ISOs when the user is not the owner of those isos.

status 9922: resolved fixed
This commit is contained in:
nit 2011-06-07 12:32:32 +05:30
parent 2e5afd4684
commit b2782842f7
1 changed files with 4 additions and 0 deletions

View File

@ -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));
}
}