feat(admin): consentement aux annonces et désabonnement sans connexion
Les comptes déjà créés ne sont pas inscrits. Le choix est facultatif à l’inscription et dans les paramètres. Un lien public demande confirmation avant d’arrêter les actualités, sans toucher aux messages de compte.
This commit is contained in:
@@ -36,7 +36,9 @@ export const authConfig = {
|
||||
nextUrl.pathname === '/forgot-password' ||
|
||||
nextUrl.pathname === '/check-email' ||
|
||||
nextUrl.pathname === '/verify-email' ||
|
||||
nextUrl.pathname.startsWith('/reset-password');
|
||||
nextUrl.pathname.startsWith('/reset-password') ||
|
||||
nextUrl.pathname === '/unsubscribe' ||
|
||||
nextUrl.pathname.startsWith('/unsubscribe/');
|
||||
|
||||
if (isAdminPage) {
|
||||
return isLoggedIn && isAdmin;
|
||||
|
||||
Reference in New Issue
Block a user