Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deny access using middleware instead of client side functions #48

Open
github-actions bot opened this issue May 26, 2022 · 0 comments
Open

Deny access using middleware instead of client side functions #48

github-actions bot opened this issue May 26, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

Deny access using middleware instead of client side functions

https://github.com/ThomasFKJorna/thesis-visualization/blob/30049cf6e0a939842bcf9768258e78cd12f91b2a/apps/thesis/pages/discussions/index.tsx#L41

    list: true,
  })

  // TODO: Deny access using middleware instead of client side functions
  if (!access) {
    window.location.replace('/')
  }

  const [cookies, setCookie] = useCookies(['visit'])
  if (!cookies.visit) setCookie('visit', {})

f65e6eb54596f7417367eb98b245d8f2227a46a2

@github-actions github-actions bot added the todo label May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants