Dear Sergio,
as always thanks a lot for your pointer, replacing :record
with :member does the trick. I managed to implement the
authorized_for_XXXXX security checks in my user model and they prevent
me from using them links in the user list table.
So the functionality is there but I did not like the fact, that the
links would still show up, albeit being disabled. I do prefer to
actually hide the non active links for a cleaner UI.
So just for completeness sake: here is how to achieve this for the
rest of us:
In case a link is disabled in the security layer it gets the class
"disabled" attached to it. So with the following css statement in your
"active_scaffold_override.css" file you can hide them:
.active-scaffold .disabled {display:none;}
Thanks again, and keep up the good work!
Cheers J.
--
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.