api: FIXME for api access checker adapter

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2012-12-12 14:21:38 -08:00
parent 472f4f91b9
commit 7dbdf786cc
1 changed files with 2 additions and 0 deletions

View File

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