Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5102 Visualizações

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
ago. 25
20028
0
jun. 20
2752
1
nov. 18
5177
0
mai. 16
3503
6
fev. 16
11656