RSS

Unix Behavior Revisited Digg It!

Wed, Mar 25, 2009

CakePHP, Featured

Unix Behavior Revisited

I’d spend some time writing up a big, long winded message about how I’ve been busy and unable to get to releasing this code but, we’ll skip straight to the code and some updates about it.

  • Added a ::disableUnix() method for turning it off in the event that you need to turn it off when doing, for example, shell work with a model.
  • Removed the $locale flag. It runs all the time unless disabled.
  • Cleaned up the SQL.
  • Centralized the permission information. You no longer need to adjust your tables.

The same caveats apply as before. Chances are there won’t be a way to just “drop” this into an application, I’m still mulling that one over; you’ll have to adjust the code. Hopefully not much though.

It was written for an older version of CakePHP so you may have to adjust the Set::extract() calls, for example.

Unix Behavior

2 Comments For This Post

  1. Amit Says:

    Awesome - thanks again for putting this out there. I’ll check it out this weekend. One last question - I was reading xaprb’s post that you modeled this after, and if I understood correctly, a record can only belong to one user and group owner. I’m trying to get to a place multiple groups and multiple users can access one record, and wanted to see if that’s possible.

    Thanks again!

  2. JamesD Says:

    Thanks for the useful info. It’s so interesting

2 Trackbacks For This Post

  1. Role Based Access Control for CakePHP (now with row-level sweetness) « some flot, some jet Says:

    [...] with adapting Baron’s implementation to fit our requirements.  in the end, while it was a good stab at it, i think we still tried to make it do too much, and there were various problems with our [...]

  2. Row-level Model Access Control for CakePHP « some flot, some jet Says:

    [...] with adapting Baron’s implementation to fit our requirements.  in the end, while it was a good stab at it, i think we still tried to make it do too much, and there were various problems with our [...]

Leave a Reply