in your create_permitted? permission, change it to:

user_is? acting_user

while you're at it, you might want to update the update/destroy
permissions to make sense for your desire.  Do you want comments able
to be edited/destroyed by anyone besides the admin?

On Dec 5, 5:57 pm, FF <[email protected]> wrote:
> Hi!
>
> An extremly noob Hobo programmer has a simple model, like a comment.
> The comment can only be made by a logged-in user. I want to remove
> that the "User" can be changed (the comment belongs to the logged in
> user, and cannot be changed).
>
> I added this to my model, to enable the comment to belong to the
> logged-in user
>
>   belongs_to :user, :creator => true
>
> But how to remove the change-user-field in a new comment?
>
> Thanks!
>
> FF

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to