diff --git a/client/src/lib/permissions.ts b/client/src/lib/permissions.ts
index 0cc6513..7ba3316 100644
--- a/client/src/lib/permissions.ts
+++ b/client/src/lib/permissions.ts
@@ -1,7 +1,7 @@
// Système de permissions hardcodé par module
// Remplace l'ancien système flexible basé sur la base de données
-export type Permission = 'view' | 'create' | 'edit' | 'delete' | 'validate';
+export type Permission = 'view' | 'create' | 'edit' | 'delete' | 'validate' | 'manage';
export type Role = 'admin' | 'directeur' | 'manager' | 'employee';
export type Module =
| 'dashboard'
diff --git a/client/src/pages/BackupManager.tsx b/client/src/pages/BackupManager.tsx
index f1146da..606255d 100644
--- a/client/src/pages/BackupManager.tsx
+++ b/client/src/pages/BackupManager.tsx
@@ -264,7 +264,7 @@ export default function BackupManager() {
) : (
- {backups.map((backup) => (
+ {backups.map((backup: BackupFile) => (
{
+ app.get('/api/backups', isAuthenticated, requireAdmin, async (req: any, res: any) => {
try {
const backups = await backupService.getBackupList();
res.json(backups);
@@ -2350,7 +2350,7 @@ RÉSUMÉ DU SCAN
}
});
- app.post('/api/backups', isAuthenticated, requireAdmin, async (req: any, res) => {
+ app.post('/api/backups', isAuthenticated, requireAdmin, async (req: any, res: any) => {
try {
const user = await storage.getUserWithGroups(req.user.claims ? req.user.claims.sub : req.user.id);
if (!user) {
@@ -2365,7 +2365,7 @@ RÉSUMÉ DU SCAN
}
});
- app.get('/api/backups/:filename/download', isAuthenticated, requireAdmin, async (req: any, res) => {
+ app.get('/api/backups/:filename/download', isAuthenticated, requireAdmin, async (req: any, res: any) => {
try {
const { filename } = req.params;
const filepath = await backupService.downloadBackup(filename);
@@ -2382,7 +2382,7 @@ RÉSUMÉ DU SCAN
}
});
- app.delete('/api/backups/:filename', isAuthenticated, requireAdmin, async (req: any, res) => {
+ app.delete('/api/backups/:filename', isAuthenticated, requireAdmin, async (req: any, res: any) => {
try {
const { filename } = req.params;
await backupService.deleteBackup(filename);