İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5115 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Ağu 25
20041
0
Haz 20
2755
1
Kas 18
5184
0
May 16
3509
6
Şub 16
11680