Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4996 Widoki

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()
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
sie 25
19842
0
cze 20
2676
1
lis 18
5105
0
maj 16
3415
6
lut 16
11576