I've made major progress.

I changed transition availibility to :all
>From my application.dryml i removed some code and now i just call
deactivation button by <deactivate-user-form /> tag inside edit user
page.
It works.
I am able to change user status from edit page, but on the other hand
any user can open other users edit pages via url and they see
Deactivate button.
Any idea how to hide it from  others?

I tried to put around button code like:
        <%= if logged_in? && acting_user.administrator? %>
        <%=  <deactivate-user-form /> %>
       <%= end %>
or
       <deactivate-user-form hidden="acting_user.administrator?" />
But I end up with compile errors.

-- 
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