feat: Update manager permissions and enhance toast notifications with internationalization support

This commit is contained in:
sudomarcma
2025-07-18 18:07:20 +08:00
parent c78539bab8
commit 2855214fae
8 changed files with 176 additions and 61 deletions
+1 -1
View File
@@ -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;