Re: [web2py] Re: login_bare needs a password ?

2019-09-21 Thread Massimo Di Pierro
Can you logout and login again? The group membership is cached and maybe you changed after you tried the code. On Wednesday, 18 September 2019 10:16:03 UTC-7, Ramos wrote: > > or maybe not > I tried to impersonate other user that has membership PORTEIRO and i get > "Forbidden" > > Em qua, 18

Re: [web2py] Re: login_bare needs a password ?

2019-09-19 Thread António Ramos
any help? Em qua, 18 de set de 2019 às 18:15, António Ramos escreveu: > or maybe not > I tried to impersonate other user that has membership PORTEIRO and i get > "Forbidden" > > Em qua, 18 de set de 2019 às 18:09, António Ramos > escreveu: > >> apparently i need to be logged in first. >> >>

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
or maybe not I tried to impersonate other user that has membership PORTEIRO and i get "Forbidden" Em qua, 18 de set de 2019 às 18:09, António Ramos escreveu: > apparently i need to be logged in first. > > solved! > > Em qua, 18 de set de 2019 às 17:38, António Ramos > escreveu: > >> Is

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
apparently i need to be logged in first. solved! Em qua, 18 de set de 2019 às 17:38, António Ramos escreveu: > Is something like this??? It returns not authorized! > > auth.add_permission(db.auth_group(role="PORTEIRO")["id"], > "impersonate",db.auth_user) > auth.impersonate(4)#

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
Is something like this??? It returns not authorized! auth.add_permission(db.auth_group(role="PORTEIRO")["id"], "impersonate",db.auth_user) auth.impersonate(4)# user 4 is included in the PORTEIRO group Em sex, 16 de ago de 2019 às 20:05, Dave S escreveu: > > > On Friday, August