mirror of https://github.com/apache/cloudstack.git
api: FIXME for api access checker adapter
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
472f4f91b9
commit
7dbdf786cc
|
|
@ -770,6 +770,8 @@ public class ApiServer implements HttpRequestHandler {
|
|||
|
||||
private boolean isCommandAvailable(User user, String commandName) {
|
||||
for(APIAccessChecker apichecker : _apiAccessCheckers) {
|
||||
// Break on the first adapter that validates
|
||||
// FIXME: In case of multiple adapters, this may not be the best way of validation. See CLOUDSTACK-618
|
||||
if (apichecker.canAccessAPI(user, commandName))
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue