Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5944 Näkymät

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
Hylkää
Tekijä

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?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 23
3599
5
elok. 25
9867
2
heinäk. 25
990
4
kesäk. 25
1116
1
kesäk. 25
1440