Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5863 Zobrazení

I need to restrict some pages to be accessible only to users that are logged in. Like \shop or \partners etc.


How do I do this? I know I could overwrite controllers but it seems like a bad idea, because I would need to copy whole controller to my custom module and other inheriting modules would brake.


Using Odoo 13


Avatar
Zrušit
Autor

Hey Ray, thanks for the comment.

I also just found out how to override a Controller like in this module:

https://github.com/OCA/e-commerce/blob/12.0/website_sale_require_login/controllers/main.py

Which method is better in your opinion?

Related Posts Odpovědi Zobrazení Aktivita
1
srp 23
3534
5
srp 25
9695
2
čvc 25
874
4
čvn 25
990
1
čvn 25
1312