I had the same problem trying this "approach". In fact you need to give the rights to admin as for the other (I use role myself). What I did is :
- disabling the Auth in app controller - empty the acos_aros table - log as admin - call my interface for managing role's rights (it displays all controller / all actions per user's role with a pair of links allow / denied) - allow the acl interface to admin - Enabling again the Auth Then when you log as admin (of course you allow in beforeFilter the login action), since you have the "right" to manage ACL permissions, you can enable/disable actions for yourself (and the others) as much as you want. hope this helps On Oct 5, 10:22 am, Mike Green <[EMAIL PROTECTED]> wrote: > I had the exact same thing. > > The jails blog *does* work though (and works well when it does). > > Have you changed the hash in the database? > > Have you ran the init_acl script? > > The only thing I can suggest if those two things fail, is to clear out > what you've got, and start again. The tiniest of mistakes can cause it > to fall over and be a dog to debug. > > One thing, the acl component is broken and there is a ticket in the > trac (with patch). At the moment, parent permissions are overwriting > any permissions further down the line but for the blog tutorial that > shouldnt matter. > > On Oct 5, 8:54 am, Andreas <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I've followed the tutorial > > athttp://blog.jails.fr/cakephp/index.php?post/2007/08/15/AuthComponent-... > > , I updated the ACL as said and all. But when I try to login with the > > admin account I get "You are not authorized to access that location." > > even though I ran the InitAcl with the line > > $this->Acl->allow('Admin', 'Users', '*'); > > > And another weird thing, when I enter an invalid username/password > > combination I doesn't get the "Login failed. Invalid username or > > password.". > > > Anyone experienced the same? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
