Private
Public Access
falla
This commit is contained in:
1 parent
6c0e44cb45
commit
90e76d4963
11 files changed
+112
-38
No files matched your search
@@ -6,17 +6,9 @@ export const load: PageLoad = async ({ fetch }) => {
|
||||
let grupos: Grupo[] = [];
|
||||
let permisos: Permiso[] = [];
|
||||
|
||||
try {
|
||||
grupos = await obtenerGrupos(fetch);
|
||||
} catch {
|
||||
// token might not be available on server
|
||||
}
|
||||
grupos = await obtenerGrupos(fetch);
|
||||
|
||||
try {
|
||||
permisos = await obtenerPermisos(fetch);
|
||||
} catch {
|
||||
// token might not be available on server
|
||||
}
|
||||
permisos = await obtenerPermisos(fetch);
|
||||
|
||||
return { grupos, permisos };
|
||||
};
|
||||
Reference in new issue
Block a user