Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4937 Weergaven

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
aug. 25
19739
0
jun. 20
2611
1
nov. 18
5045
0
mei 16
3361
6
feb. 16
11523