Skip to content
A CakePHP 1.3 plugin that provides UNIX-like row-level permissions for model data.
PHP
Latest commit b502b39 Jul 20, 2011 @jmcneese Merge pull request #13 from andrewmcc/master
Issue #6 - "GROUP BY" warnings on MSSQL from $this->paginate()
Failed to load latest commit information.
config/schema renamed all occurences of "Permission" to "PermissionBit", avoiding c… Jan 19, 2011
controllers/components
libs renamed all occurences of "Permission" to "PermissionBit", avoiding c… Jan 19, 2011
models Modified beforeFind to remove PermissionBit fields from select query … Jul 20, 2011
tests
.gitignore
LICENSE updating docblocks and copyright year Jan 21, 2010
README.mdown

README.mdown

Permissionable Plugin for CakePHP 1.3+

Permissionable provides row level permissions to a CakePHP application that mimic the UNIX filesystem methods by providing owner, group and other permission levels.

Installation

  • checkout the code $ cd /path/to/your/app/plugins && git clone git://github.com/jmcneese/permissionable.git
  • create needed schema $ cake schema create Permissionable.permission
  • add the component to needed controllers (or AppController) public $components = array('Permissionable.Permissionable');
  • modify permissionable/controllers/components/permissionable.php to set user_id, primary group_id and secondary group_ids, so Permissionable knows who the logged in user is
  • add the behavior to needed models (or AppModel) public $actsAs = array('Permissionable.Permissionable' => array('defaultBits'=>480));

Documentation

Further documentation including additional ways of configuring Permissionable can be found here and here.

Reporting issues

If you have any issues with Permissionable please open a ticket on the github issue tracker

Contributing

If you'd like to contribute to Permissionable, feel free to fork the project and submit patches!

Something went wrong with that request. Please try again.