diff --git a/backend/managerRoutes.js b/backend/managerRoutes.js index fe8977e..9a91c94 100644 --- a/backend/managerRoutes.js +++ b/backend/managerRoutes.js @@ -61,7 +61,7 @@ export default function(db) { }); // Definitive version using a dedicated database connection - router.post('/enabled-dates/update', checkPermission('view_all'), async (req, res) => { + router.post('/enabled-dates/update', checkPermission('manage_resources'), async (req, res) => { let connection; // Define connection here to ensure it's accessible in the 'finally' block try { const { datesToEnable, datesToDisable } = req.body; diff --git a/src/App.vue b/src/App.vue index 42b2b98..a7976c3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@