Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4943 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
aug. 25
19748
0
jun. 20
2613
1
nov. 18
5049
0
maj 16
3377
6
feb. 16
11536