feat: add local fallback for S3 writes
This commit is contained in:
@@ -81,7 +81,7 @@ export function createAppRouter(pinia: Pinia) {
|
||||
}
|
||||
|
||||
if ((to.name === 'login' || to.name === 'register') && auth.isLoggedIn) {
|
||||
return { name: 'dashboard' }
|
||||
return { name: auth.user?.role === 'admin' ? 'admin' : 'dashboard' }
|
||||
}
|
||||
|
||||
if (to.meta?.requiresAdmin && auth.user?.role !== 'admin') {
|
||||
|
||||
Reference in New Issue
Block a user