mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-24 08:02:26 -04:00
Display permissions errors on the front
This commit is contained in:
@@ -78,6 +78,10 @@ export const UserP = ResourceP("user")
|
||||
)
|
||||
.default({}),
|
||||
})
|
||||
.transform((x) => ({ ...x, logo: imageFn(`/user/${x.slug}/logo`) }));
|
||||
.transform((x) => ({
|
||||
...x,
|
||||
logo: imageFn(`/user/${x.slug}/logo`),
|
||||
isVerified: x.permissions.length > 0,
|
||||
}));
|
||||
|
||||
export type User = z.infer<typeof UserP>;
|
||||
|
||||
Reference in New Issue
Block a user