mirror of https://gitee.com/bigwinds/arangodb
fixed auth for superuser
This commit is contained in:
parent
59cae06890
commit
5634325bda
|
@ -57,7 +57,7 @@ describe ArangoDB do
|
|||
|
||||
doc.code.should eq(400)
|
||||
doc.parsed_response['error'].should eq(true)
|
||||
doc.parsed_response['errorNum'].should eq(1203)
|
||||
doc.parsed_response['errorNum'].should eq(1227)
|
||||
doc.parsed_response['code'].should eq(400)
|
||||
doc.headers['content-type'].should eq("application/json; charset=utf-8")
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ function needMyself(req, res, username) {
|
|||
let allowed = (user === username);
|
||||
|
||||
if (!allowed) {
|
||||
allowed = users.permission(username, "_system") === 'rw';
|
||||
allowed = (users.permission(user, "_system") === 'rw');
|
||||
}
|
||||
|
||||
if (!allowed) {
|
||||
|
|
Loading…
Reference in New Issue