Skip to Content
Menu
This question has been flagged
1 Odpoveď
4371 Zobrazenia

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()
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
4
máj 21
19097
0
jún 20
2240
1
nov 18
4627
0
máj 16
2923
6
feb 16
11024