コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5018 ビュー

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
8月 25
19889
0
6月 20
2688
1
11月 18
5128
0
5月 16
3439
6
2月 16
11591