ApiServer: Process through chain of api access checker, on failure it will throw exception

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-01-14 18:56:02 -08:00
parent 0a31945ee5
commit 8f27c711e5
1 changed files with 1 additions and 3 deletions

View File

@ -786,9 +786,7 @@ public class ApiServer implements HttpRequestHandler {
}
for (APIChecker apiChecker : _apiAccessCheckers) {
// Fail the checking if any checker fails to verify
if (!apiChecker.checkAccess(user, commandName))
return false;
apiChecker.checkAccess(user, commandName);
}
return true;
}