mirror of https://gitee.com/bigwinds/arangodb
AuthenticationFeature::isEnabled() is not doing what is expected (#7373)
This commit is contained in:
parent
ee45b6a595
commit
eda236f968
|
@ -153,7 +153,7 @@ void RestAdminServerHandler::handleMode() {
|
|||
} else if (requestType == rest::RequestType::PUT) {
|
||||
|
||||
AuthenticationFeature* af = AuthenticationFeature::instance();
|
||||
if (af->isEnabled() && !_request->user().empty()) {
|
||||
if (af->isActive() && !_request->user().empty()) {
|
||||
auth::Level lvl = auth::Level::NONE;
|
||||
if (af->userManager() != nullptr) {
|
||||
lvl = af->userManager()->databaseAuthLevel(_request->user(),
|
||||
|
|
|
@ -51,7 +51,7 @@ RestStatus RestShutdownHandler::execute() {
|
|||
}
|
||||
|
||||
AuthenticationFeature* af = AuthenticationFeature::instance();
|
||||
if (af->isEnabled() && !_request->user().empty()) {
|
||||
if (af->isActive() && !_request->user().empty()) {
|
||||
auth::Level lvl = auth::Level::NONE;
|
||||
if (af->userManager() != nullptr) {
|
||||
lvl = af->userManager()->databaseAuthLevel(_request->user(), "_system", /*configured*/true);
|
||||
|
|
Loading…
Reference in New Issue