feat: Update manager permissions and enhance toast notifications with internationalization support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user