Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Modified the AclFilter component to allow custom Auth configs #34

wants to merge 1 commit into from

2 participants


Using the "User.Auth.*" configuration keys, it is possible to change hardcoded configurations such as loginAction from the bootstrap for instance.


In 1.4, you can already plug your own Acl. I think this now superseeded by that feature.


This PR was for the 1.3 branch initially. It can be ignored if as you say the 1.4 version will allow it out of the box (I have not tried it yet) and no maintenance is planned on the 1.3 branch.


Closing this PR since it was implemented in 1.4

@real34 real34 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 plugins/acl/controllers/components/acl_filter.php
6 plugins/acl/controllers/components/acl_filter.php
@@ -49,6 +49,12 @@ public function auth() {
$this->controller->Auth->actionPath = 'controllers/';
+ if ($customAuthCfg = Configure::read('User.Auth')) {
+ foreach ($customAuthCfg as $attribute => $customValue) {
+ $this->controller->Auth->{$attribute} = $customValue;
+ }
+ }
if ($this->controller->Auth->user() && $this->controller->Auth->user('role_id') == 1) {
// Role: Admin
$this->controller->Auth->allowedActions = array('*');
Something went wrong with that request. Please try again.