Should not by default. Should be tied to the lifecycle available_to. the way you have it listed though, looks like reset is only available to inactive users?
On Jun 7, 12:48 am, blueHandTalking <[email protected]> wrote: > I believe it is a permission problem. > > I was just re-reading the Agility tutorial, the section on > permissions, > and it had the following: > > + transition :request_password_reset, { :active > => :active }, :new_key => true do > + UserMailer.deliver_forgot_password(self, lifecycle.key) > + end > > transition :request_password_reset, { :inactive > => :inactive }, :new_key => true do > (...no more of snippet in the example) > > Is this an error in the Cookbook, because the bottom lines did not > have a - (minus sign) > in front of them indicating that those lines should be deleted. If not > an error, is that > something like method overloading? Anyway, I did not understand how > to have 2 > transitions with the same name. > > For update in users.rb I have: > > def update_permitted? > acting_user.administrator? || (acting_user == self && only_changed? > (:crypted_password, :contact_name,:contact_id,:contact_title,:email_address)) > > I tried: > > def update_permitted? > acting_user.administrator? || (acting_user.signed_up? && > only_changed? > (:crypted_password, :contact_name,:contact_id,:contact_title,:email_address)) > > But that did not work either. > > Also, I manually reset the administrator id=1 in MySQL. > > Jet > > Is it the update permission that is affected with resetting password? > > > > > Offhand, do you have a separate class for admins? The lifecycle > > doesn't propagate well to subclasses of User. > > > Otherwise, is there any chance your permission methods might be > > causing the problem? > > > --Matt Jones > > -- 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.
