Giter Site home page Giter Site logo

jmcneese / permissionable Goto Github PK

View Code? Open in Web Editor NEW
50.0 6.0 8.0 334 KB

A CakePHP 1.3 plugin that provides UNIX-like row-level permissions for model data.

Home Page: http://jmcneese.wordpress.com/2010/01/28/rmac-is-dead-long-live-rmac/

License: MIT License

PHP 100.00%

permissionable's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.