forked from administration/panel
fix: skip sessions if no permission
parent
bae34d02ea
commit
12ee0001f9
|
@ -35,7 +35,7 @@ export default async function User({
|
||||||
if (!account) return notFound();
|
if (!account) return notFound();
|
||||||
|
|
||||||
const user = await fetchUserById(params.id);
|
const user = await fetchUserById(params.id);
|
||||||
const sessions = await fetchSessionsByAccount(params.id);
|
const sessions = await fetchSessionsByAccount(params.id).catch(() => []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
|
|
Loading…
Reference in New Issue