{"id":20495143,"url":"https://github.com/fmcorz/aclmanager","last_synced_at":"2025-04-13T17:43:28.119Z","repository":{"id":62506048,"uuid":"2205640","full_name":"FMCorz/AclManager","owner":"FMCorz","description":"Plugin to manage Acl for CakePHP 2.x","archived":false,"fork":false,"pushed_at":"2016-03-19T06:50:52.000Z","size":210,"stargazers_count":59,"open_issues_count":11,"forks_count":32,"subscribers_count":17,"default_branch":"stable","last_synced_at":"2025-03-27T08:45:09.818Z","etag":null,"topics":["aclmanager","cakephp","cakephp-plugin","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FMCorz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-14T14:56:28.000Z","updated_at":"2020-09-15T09:15:20.000Z","dependencies_parsed_at":"2022-11-02T12:45:47.583Z","dependency_job_id":null,"html_url":"https://github.com/FMCorz/AclManager","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMCorz%2FAclManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMCorz%2FAclManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMCorz%2FAclManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMCorz%2FAclManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMCorz","download_url":"https://codeload.github.com/FMCorz/AclManager/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248756398,"owners_count":21156761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aclmanager","cakephp","cakephp-plugin","php"],"created_at":"2024-11-15T17:44:45.990Z","updated_at":"2025-04-13T17:43:28.102Z","avatar_url":"https://github.com/FMCorz.png","language":"PHP","readme":"# AclManager for CakePHP 2.x\n\nThis plugins allows you to easily manage your permissions in CakePHP 2.x through the Acl module.\n\n## Features\n\n* Managing permissions for each node\n* Updating Database with missing AROs (Users, Roles, ...)\n* Updating Database with missing ACOs (Controller actions)\n* Revoking all permissions\n\n## Requirements\n\n* CakePHP 2.x\n\n## How to install\n\n### 1. Set up your Acl environment\n\n   * Install SQL tables through Cake Console\n   * parentNode() method on your requester models\n\nSee: [CakePHP: Simple ACL Controlled Application](http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html)\n\n### 2. Configure Auth in your AppController\n\nIt should look something like this:\n\n```php\nvar $components = array('Auth', 'Acl', 'Session');\n\nfunction beforeFilter() {\n    //Configure AuthComponent\n    $this-\u003eAuth-\u003eauthorize = array(\n        'Controller',\n        'Actions' =\u003e array('actionPath' =\u003e 'controllers')\n    );\n    $this-\u003eAuth-\u003eauthenticate = array(\n        'Form' =\u003e array(\n            'fields' =\u003e array(\n                'username' =\u003e 'login',\n                'password' =\u003e 'password'\n            )\n        )\n    );\n    $this-\u003eAuth-\u003eloginAction = array(\n        'controller' =\u003e 'users',\n        'action' =\u003e 'login',\n        'admin' =\u003e false,\n        'plugin' =\u003e false\n    );\n    $this-\u003eAuth-\u003elogoutRedirect = array(\n        'controller' =\u003e 'users',\n        'action' =\u003e 'login',\n        'admin' =\u003e false,\n        'plugin' =\u003e false\n    );\n    $this-\u003eAuth-\u003eloginRedirect = array(\n        'controller' =\u003e 'products',\n        'action' =\u003e 'index',\n        'admin' =\u003e false,\n        'plugin' =\u003e false\n    );\n}\n\nfunction isAuthorized($user) {\n    // return false;\n    return $this-\u003eAuth-\u003eloggedIn();\n}\n```\n\n### 3. Download AclManager\n\n#### Manually\n\nDownload the stable branch (https://github.com/FMCorz/AclManager/archive/stable.zip) and paste the content in your `app/Plugin/` directory.\n\n#### With Composer\n\n1. [Install composer](http://getcomposer.org/doc/00-intro.md#locally) in the `app/` folder of your project.\n2. Add `\"fmcorz/acl-manager\": \"stable\"` to your `require` key in your `composer.json` file. ([More about this](http://getcomposer.org/doc/01-basic-usage.md#the-require-key))\n3. Run `php composer.phar install` to install the plugin.\n\n[Composer documentation](http://getcomposer.org/doc/)\n\n### 4. Configure the plugin\n\nSee `AclManager/Config/bootstrap.php`\n\nAclManager.aros : write in there your requester models aliases (the order is important)\n\n### 5. Enable the plugin\n\nIn `app/Config/bootstrap.php`\n\n    CakePlugin::load('AclManager', array('bootstrap' =\u003e true));\n\n### 6. Login with an existing user\n\nThe plugin conflicts with `$this-\u003eAuth-\u003eallow()`, do not use it. Just make sure that you are logged in.\n\n### 7. Access the plugin at `/acl_manager/acl`\n\n   * Update your AROs and ACOs\n   * Set up your permissions (do not forget to enable your own public actions!)\n   \n### 8. Disable the authorizer Controller\n\nOr uncomment `return false` in `AppController::isAuthorized()`\n\n### 9. You're done!\n\nEnjoy!\n\nLicence\n-------\n\nLicensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmcorz%2Faclmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmcorz%2Faclmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmcorz%2Faclmanager/lists"}