Hi Folks

There will be a small change to the behaviour of the permission system  
in 0.8.5, due real soon now.

In the new permission system, I had the bright idea that the  
permission methods (e.g. create_permitted?) should be called *after*  
all active-record callbacks, so that the state of the record was just  
as it would be saved in the database.

That turned out to be a poor decision. What you really want to have  
control over, is what things the *user* is allowed to change directly.  
Other changes that happen as a result of application logic, via active- 
record callbacks, are presumably things you want to happen! The  
permission system is not their to sanity check your own code.

So I've just reversed that poor idea. The permission methods are  
called first, before any of the various 'save' related callbacks are  
called.

Tom


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