message: added check for null object when testing roles
diff: @@ -56,7 +56,7 @@ export const isAdmin = (session: Session | JWT | null): boolean => {
  if (session) {
  const sessionRoles: SessionRoles = {
  realmRoles: session.user?.realm_access.roles ?? [],
  - resourceRoles: session.user?.resource_access.account.roles ?? [],
  + resourceRoles: session.user?.resource_access?.account.roles ?? [],
  }
  return canViewContactRequests(sessionRoles) && canViewSupporters(sessionRoles)
  }
  