I have no idea, to be honest -- Did you modify repoze.what itself too?
Please make sure the level of the logger used by repoze.what is at least INFO
and then run Pylons this way:
AUTH_LOG=1 paster serve development.ini
Finally, visit that controller action again and post the log of that request
(well, at least the part where the permissions are printed).
This will help us find what's going wrong.
Cheers.
On Friday April 17, 2009 21:27:25 karikrishni wrote:
> I will try translation changes and let you know.
>
> Any idea why is_met fails but @ActionProtecter pass the permission?
>
> if is_met(has_permission('admin_post')):
> post.user_can_suspend = True
> else:
> post.user_can_suspend = False
>
> fails.. I have given the permission to the logged in user but still it
> fails. But in the ActionProtector, it works
>
> @ActionProtector(has_permission('admin_post'),cool_handlers)
> def edit(.....)
> .........
> .........
>
>
> Sorry, I mess up two questions with the single post..
--
Gustavo Narea <xri://=Gustavo>.
| Tech blog: =Gustavo/(+blog)/tech ~ About me: =Gustavo/about |
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---