mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:07:08 +00:00
Fix typo in access middleware
This commit is contained in:
@@ -67,7 +67,7 @@ async function user (req, res, next) {
|
||||
async function admin (req, res, next) {
|
||||
if (req.user) {
|
||||
const user = new ServerUser(req.user);
|
||||
if (user.operations.accessToOperation("edit").length > 0) {
|
||||
if (user.organisations.accessToOperation("edit").length > 0) {
|
||||
next();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user