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

Can I add globally access permission to the front of my site? #672

Open
LukaszNiziolDWG opened this issue Jan 29, 2019 · 1 comment
Open

Comments

@LukaszNiziolDWG
Copy link

Can I add globally access permission to the front of my site?

I would like the user to be able to view the site only after logging in.
Can I add such a condition somewhere?

  • Operating System: Windows
  • PHP Version: 7.1.6
  • Laravel Version: 5.4.*
  • Asgardcms/Platform version: 2.6.1
@ChristianGiupponi
Copy link
Contributor

You can add auth middleware in config/asgard/config.php in middleware.frontend array.
Don't know how it will handle the login page, maybe you should add a custom route that do not use the default middleware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants