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

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
19731
0
6月 20
2608
1
11月 18
5040
0
5月 16
3347
6
2月 16
11509