UserCampusScope relation and audit action; scopeEvent/scopeList/unscopedOnly/ campusIndependent/scopeBroadcast markers; tests/campusScopeRoutes.test.js (still failing: events, payments, registrations, scan locks, tickets left). Can't delete a campus that has scoped staff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
407 B
JavaScript
11 lines
407 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const { listFormResponses } = require('../controllers/formController');
|
|
const { protect, staff } = require('../middleware/authMiddleware');
|
|
const { scopeList } = require('../utils/campusScope');
|
|
|
|
// Staff or higher can view submitted forms
|
|
router.get('/responses', protect, staff, scopeList, listFormResponses);
|
|
|
|
module.exports = router;
|