1
0
Fork 0

fixed auth for superuser

This commit is contained in:
Frank Celler 2016-06-10 16:49:18 +02:00
parent 59cae06890
commit 5634325bda
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -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) {