try

@auth.requires(request.client==None or
auth.has_membership('managers'))

On Jun 21, 2:53 am, mika <miss.from.h...@gmail.com> wrote:
> hi
> I can't find solution to call the function protected by auth from
> cron.
>
> I have defined auth group managers, and decorated function with
>
> @auth.requires(not request.wsgi or auth.has_membership('managers'))
>
> unfortunatelly, that is not working from cron.
>
> i havetried also
>
> @auth.requires(not request.env or auth.has_membership('supervisors'))
>
> the same...
>
> how to achieve it?

Reply via email to