تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2095 أدوات العرض

Hi, the Forum is visible to all users, even without signing in.

How can we make it visible only after signing in?

Thanks

الصورة الرمزية
إهمال
أفضل إجابة

Have a look at this free app: https://www.odoo.com/apps/modules/9.0/website_security/ 


Basically, you should try to add to all forum controllers (website_forum/controllers/main.py) to http.routes a special argument 'auth'

E.g.

@http.route(['/forum'], type='http', auth="user", website=True)    def forum(self, **kwargs):
الصورة الرمزية
إهمال