Hello again.
I made little change. I'm not sure it helps, yet it gives diffrent
output.
I added
def edit_permitted? (state)
acting_user.administrator?
end
Now, when I try to click Deactivate User form button I get:
That operation is not allowed
Exception:
#<Hobo::PermissionDeniedError: Hobo::PermissionDeniedError>
params:
{"action"=>"deactivate_user", "id"=>"27-piotr-stepniak",
"controller"=>"users"}
--
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.