Skip to content

Commit c826221

Browse files
committed
add javadoc
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 1235a7d commit c826221

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

api/src/main/java/com/cloud/user/AccountService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ User createUser(String userName, String password, String firstName, String lastN
8585

8686
boolean isRootAdmin(Long accountId);
8787

88+
/**
89+
* Checks if the given account has ROOT admin privileges.
90+
*
91+
* @param account the account to check
92+
* @return true if the account is a ROOT admin, false otherwise
93+
*/
8894
boolean isRootAdmin(Account account);
8995

9096
boolean isDomainAdmin(Long accountId);

server/src/main/java/com/cloud/user/AccountManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ public boolean isRootAdmin(Long accountId) {
606606
@Override
607607
public boolean isRootAdmin(Account account) {
608608
if (account == null) {
609-
return false; //account is deleted or does not exist
609+
return false;
610610
}
611611
for (SecurityChecker checker : _securityCheckers) {
612612
try {

0 commit comments

Comments
 (0)