Some improvements in payment record
This commit is contained in:
@@ -49,6 +49,7 @@ export const getServerSideProps = withIronSessionSsr(async ({ req, res }) => {
|
||||
const entities = await getEntitiesWithRoles(isAdmin(user) ? undefined : entityIDs)
|
||||
|
||||
const allowedEntities = findAllowedEntities(user, entities, "view_payment_record")
|
||||
if (allowedEntities.length === 0) return redirect("/")
|
||||
|
||||
return {
|
||||
props: serialize({ user, entities: allowedEntities }),
|
||||
|
||||
Reference in New Issue
Block a user