<a action="new"> and after_user_new
Reported by Nicolas Oury | August 2nd, 2010 @ 07:59 PM | in Hobo 1.4
When using after_user_new callback to set permissions (as
explained in the manual for event.group),
do not see whether creation is possible or not, and
the link is not put.
Replacing
new_record = target.new
by
new_record = target.user_new(current_user)
In the definition of tag "a" in rapid_core.dryml
(I don't know if it breaks something else, but does not seem to do in my app)
Comments and changes to this ticket
-
Matt Jones September 14th, 2011 @ 09:18 PM
- State changed from new to open
- Assigned user set to Matt Jones
- Milestone set to Hobo 1.4
- Milestone order changed from 197865 to 0
This seems like it might be a deeper issue - for instance,
SomeModel.viewable_by?(user)
usesnew
directly as well.Note to self: here's the mention in the documentation:
Permission System
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป