mirror of https://github.com/apache/cloudstack.git
APIChecker: Fix interface definition to take in User
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
0a1e4b8cf9
commit
b9c020fa7c
|
|
@ -23,5 +23,8 @@ import com.cloud.utils.component.Adapter;
|
|||
// APIChecker checks the ownership and access control to API requests
|
||||
public interface APIChecker extends Adapter {
|
||||
// Interface for checking access for a role using apiname
|
||||
// If true, apiChecker has checked the operation
|
||||
// If false, apiChecker is unable to handle the operation or not implemented
|
||||
// On exception, checkAccess failed don't allow
|
||||
boolean checkAccess(User user, String apiCommandName) throws PermissionDeniedException;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue