[web2py] Re: impersonate any user

2013-06-17 Thread Kostas M
Just for the record, these two issues have been fixed at the latest revision. http://code.google.com/p/web2py/issues/detail?id=1530 http://code.google.com/p/web2py/issues/detail?id=1539 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

[web2py] Re: impersonate any user

2013-04-11 Thread Kostas M
Even worse, the impersonate action is never logged in the auth_event. It seems that in the impersonate definition (tools.py), the self.log_event is not reached, due to the callback above it, which is a redirect_after_login .. It seems like a bug to me. if onaccept: form = Stora

[web2py] Re: impersonate any user

2013-04-10 Thread Kostas M
Is the reversion back to the initial user working properly? I can impersonate a user, entering a user id in the http://.../user/impersonate form, but when I go back to that form, and entering 0 , although it seems momentarily to change the user name greeting in the upper right of the app, if I

[web2py] Re: impersonate any user

2011-06-02 Thread pbreit
I think there is still a problem with impersonate since it is no longer entered via a POST. http://code.google.com/p/web2py/source/browse/gluon/tools.py#2330 if not self.is_logged_in() or not current.request.post_vars: should be if not self.is_logged_in(): Can someone confirm?

[web2py] Re: impersonate any user

2011-05-12 Thread pbreit
I think it's still not working. The "or not current.request.post_vars" is a problem because we are not longer entering impersonate via a var. http://code.google.com/p/web2py/source/browse/gluon/tools.py#2213 if not self.is_logged_in() or not current.request.post_vars: should be if not self.is_

[web2py] Re: impersonate any user

2011-05-12 Thread Massimo Di Pierro
Yes. Do not remember if in stable or trunk. On May 12, 4:07 am, rāma wrote: > Has this been fixed?

[web2py] Re: impersonate any user

2011-05-12 Thread rāma
Has this been fixed?

[web2py] Re: impersonate any user

2011-04-19 Thread Massimo Di Pierro
I think this is a bug. On Apr 19, 5:54 pm, pbreit wrote: > OK, thanks. > > I'm getting a "Not Authorized" when I GET /impersonate. Removing "or not > self.environment.request.post_vars" seems to fix it. > >     if not self.is_logged_in() or not self.environment.request.post_vars: >         rais

[web2py] Re: impersonate any user

2011-04-19 Thread pbreit
Can someone help me understand if I want to leave the default behavior of each user being in its own group? It seems excessive to me but I'm afraid to turn it off. I'm assuming this would enable me to set permissions as granularly as per-user. I'm just not sure when I would ever do that.

[web2py] Re: impersonate any user

2011-04-19 Thread pbreit
OK, thanks. I'm getting a "Not Authorized" when I GET /impersonate. Removing "or not self.environment.request.post_vars" seems to fix it. if not self.is_logged_in() or not self.environment.request.post_vars: raise HTTP(401, "Not Authorized")

[web2py] Re: impersonate any user

2011-04-19 Thread Massimo Di Pierro
First at some point do gid = auth.add_group('impersonators') auth.add_permission(gid,'impersonate','auth_user') auth.add_membership(gid,your_authuser_id) then just visit http://.../user/impersonate and it prompt you a form about which user you want to impersonate. 0 for reverting back to yourse

[web2py] Re: impersonate any user

2011-04-19 Thread pbreit
I'm looking to set up my customer support scheme and so would like to use Impersonate. But I'm not quite sure how to do it. 1. Can it be set up so that I can impersonate any auth_user? 2. I believe there was a change so that instead of /user/impersonate/[user_id], the "user_id" now needs to be P