ok, authorized_for_read? works. So if you ask for
find_record_view_permission(), you could have a table for that
(user_id, record_id) in which existance means authorized (and nil
not), but that depends on other stuff, it may not be the best way.
Notice that that's not related to AS.

On Dec 1, 10:34 am, zeal <[EMAIL PROTECTED]> wrote:
> HI ALL,
>
> authorized_for_read?
>  #only authorized person can read a project
>  # here i want access record_id and find whether for that record
> current user has permision to    # view or not ??
>   puts self.id
>  return find_record_view_permission(current_user,self.id)
> #### Giving nil
> end
>
> Anyone have any idea ???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to