Hi,
A group has many users. Each user has many projects. Depending on the
user's permission level, he may or may not create a project. However
the code snippet below doesn't work. It still has "create new" at the
top right corner.
if params[:nested]
user = User.find(active_scaffold_constraints[:user])
if user.deny?
active_scaffold_config.actions.exclude :create
end
end
Please advise.
Thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---