Skip to content

Commit b9c020f

Browse files
committed
APIChecker: Fix interface definition to take in User
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 0a1e4b8 commit b9c020f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

api/src/org/apache/cloudstack/acl/APIChecker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@
2323
// APIChecker checks the ownership and access control to API requests
2424
public interface APIChecker extends Adapter {
2525
// Interface for checking access for a role using apiname
26+
// If true, apiChecker has checked the operation
27+
// If false, apiChecker is unable to handle the operation or not implemented
28+
// On exception, checkAccess failed don't allow
2629
boolean checkAccess(User user, String apiCommandName) throws PermissionDeniedException;
2730
}

0 commit comments

Comments
 (0)