[MockWebServer] grant users at least the privileges of anonymous users

This commit is contained in:
Jakob Ackermann 2020-10-01 12:28:39 +01:00
parent 4f860995d8
commit 78fbd04ef8

View file

@ -31,7 +31,8 @@ module.exports = MockWebServer = {
return callback( return callback(
null, null,
MockWebServer.projects[project_id], MockWebServer.projects[project_id],
MockWebServer.privileges[project_id][user_id] MockWebServer.privileges[project_id][user_id] ||
MockWebServer.privileges[project_id]['anonymous-user']
) )
}, },