Thanks Anthony,

could you possibly type the code to do what you described?

also, am getting this error: *'Table' object has no attribute 'created_by'*

Do I have to turn signatures on or something to get the "created_by" 
attribute?

thanks,

Alex

On Friday, April 26, 2013 3:11:49 PM UTC-7, Anthony wrote:
>
> def search_shared_services():
>
> *    if db.SharedService.created_by==auth.user:*
>>
>
> The above generates a Query object (which will always evaluate to True), 
> it does not test whether the requested record was created by the current 
> auth.user (anyway, it should be auth.user.id or auth.user_id -- auth.user 
> is the complete user record). Instead, you want to check if the request is 
> to edit a record, and if so, whether that record was created by the current 
> auth.user_id.
>
> Anthony
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to