mirror of https://github.com/apache/cloudstack.git
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:
parent
0a31945ee5
commit
8f27c711e5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue