Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,12 @@ const checkResourceAccess = async (resourceType, resourceId, userId) => {
*/
const checkEventAccess = async (eventId, userId) => {
try {
return true; // mock: allow all for demo
// Mock: allow all for demo
return true;
} catch (error) {
console.error(`[SECURITY] Event access check error: ${error.message}`);
return false;
}
return false; // <-- moved outside so it's always reachable
};

module.exports = {
Expand Down