Removed always setting isAdmin true.

This commit is contained in:
2021-01-26 23:01:08 +01:00
parent 4c33708ff4
commit f4a16bc417
3 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ const path = require("path");
const attendeeRepository = require(path.join(__dirname, "../attendee"));
const allAttendees = (req, res) => {
const isAdmin = req.isAuthenticated() || true;
const isAdmin = req.isAuthenticated();
return attendeeRepository
.allAttendees(isAdmin)