跳至内容
菜单
此问题已终结
1 回复
4684 查看

I would like to restrict access for static pages (ex. /contactus), to allow it only for authenticated users, I have tried updating the index method on the website addon, to use auth="user" instead of auth="public", but it is not working:

class RestrictWebsite(Website):
@http.route(auth="user")
def index(self):
return super(RestrictWebsite, self).index()
形象
丢弃
相关帖文 回复 查看 活动
4
5月 21
19366
0
6月 20
2440
1
11月 18
4802
0
5月 16
3024
6
2月 16
11282