Re: Using Acl on plugins HOWTOs

2010-09-19 Thread alaxos
Hi Bryan, This won't answer your question precisely, as I'm not sure where you can find such a tutorial, but I have written a plugin that may help you in your application: it is a plugin that allows to manage ACL roles and users permissions on controllers' actions. And it supports plugins

Using Acl on plugins HOWTOs

2010-09-16 Thread Bryan de Asis
Hello, Is there any tutorial the can teach us to use the acl to set permissions to plugins? Let say... Role 1 Role 2 Role1 access - plugin 1 - plugin 1 / controller 1 - plugin 1 / controller 1 / action 1 - plugin 1 / controller 1 / action 2 - plugin 1 / controller 2 / action 1 - plugin 1

Re: ACL and permissions arent working properly

2010-09-13 Thread Rob
I'm gonna go ahead and bump this because I'm desperate and now slightly crazier than when I started this thread. -Rob On Sep 7, 12:51 am, Rob bizarro...@gmail.com wrote: Im still struggling with this, today I tried doing some testing by using Acl-check When I ran this to see e($this-Acl

Still can't figure out Auth and ACL

2010-09-12 Thread w1n78
i'm new to cake and i'm struggling with the Auth and ACL. i've been trying to follow the tutorial from the website. so i have a users table that has a username, password, group_id columns. then i have a groups table that has group_id and name columns. i run the build acl command to create the 3

Re: Problem to Login with Simple Acl controlled Application tutorial cakephp 1.3 - Lost session

2010-09-10 Thread francky06l
Check about this in config/core.php Configure::write('Session.checkAgent', false); Set also the Security.level to medium On Sep 9, 11:28 pm, Sanza mass...@creativebrains.it wrote: I have already worked with cakephp 1.2 and i have made some applications without problems about the acl

Problem to Login with Simple Acl controlled Application tutorial cakephp 1.3 - Lost session

2010-09-09 Thread Sanza
I have already worked with cakephp 1.2 and i have made some applications without problems about the acl but when i decided to use the new cakephp 1.3 i found this problem. Note: I have triple checked all steps of the tutorial Simple Acl controlled Application for cakephp 1.3, restart completely

About Auth and ACL Components

2010-09-08 Thread Synue Cunioci
I've been reading about Auth and ACL Components and, following what I've seen in the cookbook, it seems that I should have tables called users, acos, aros and aros_acos to handle Auth and ACL. My question is: how do I handle (in the database) two or three kinds of users (as visitors, authors

Re: About Auth and ACL Components

2010-09-08 Thread Loic Duros
Why not create a groups table and model? Then give the Group Model a hasMany users? :-) You can then set the groups to work as aros. I think it's in the cookbook; the ACL tutorial includes a groups table and model: http://book.cakephp.org/view/1544/Preparing-our-Application Loic On Wed, Sep 8

Re: About Auth and ACL Components

2010-09-08 Thread cricket
On Wed, Sep 8, 2010 at 10:52 AM, Loic Duros loic.du...@gmail.com wrote: Why not create a groups table and model? Then give the Group Model a hasMany users? :-) You can then set the groups to work as aros. I think it's in the cookbook; the ACL tutorial includes a groups table and model: http

Re: ACL problem of the different kind: it allows too much!

2010-09-06 Thread nils
ACOs table before restricting actions (build_acl)? Make shure you have included Acl and Auth components in your AppController  ? ( var $components = array('Acl', 'Auth', 'Session'); ) and you have following lines in beforeFilter: $this-Auth-actionPath = 'controllers/'; $this-Auth

ACL Behavior Bug?

2010-09-06 Thread euromark
What the ... is the acl behavior doing? The user just updates his password (nothing else) after that he cannot log in anymore because the aro/aco table gets messed up really bad Cake1.3.3 HEAD Any ideas? 23 SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE `User`.`id

Re: ACL and permissions arent working properly

2010-09-06 Thread Rob
Im still struggling with this, today I tried doing some testing by using Acl-check When I ran this to see e($this-Acl-check('admin', 'Campaigns')); it returned 1, which was correct, but when I checked any other group e($this-Acl-check('mod', 'Campaigns')); e($this-Acl-check('clients', 'Campaigns

Question about ACL

2010-09-03 Thread Roland Pish
Hi there. I'm starting with a project which will need the use of ACL to control permissions. These are the tables involved in permissions: Users (a user always will belong to a group) Groups Operations Permissions will be established only between Groups and Operations like: Group 1 are granted

Re: ACL and permissions arent working properly

2010-09-02 Thread Anthony
wrong with acl though. -Rob On Sep 1, 12:10 pm, Anthony anthony.c.fra...@gmail.com wrote: If you followed the Auth and ACL examples from the handbook hes referring to the build_acl action. http://book.cakephp.org/view/1549/An-Automated-tool-for-creating-ACOs On Sep 1, 10:54 am, Rob bizarro

Re: ACL and permissions arent working properly

2010-09-02 Thread Rob
things like user group and user id from $this-Auth-user I don't understand what could have gone wrong with acl though. -Rob On Sep 1, 12:10 pm, Anthony anthony.c.fra...@gmail.com wrote: If you followed the Auth and ACL examples from the handbook hes referring to the build_acl action

Re: ACL and permissions arent working properly

2010-09-01 Thread gome$
hi, It won't affect auth permanently. Show me your AppControler source code and initACL function. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP

Re: ACL problem of the different kind: it allows too much!

2010-09-01 Thread gome$
Hi Nils, Have you updated ACOs table before restricting actions (build_acl)? Make shure you have included Acl and Auth components in your AppController ? ( var $components = array('Acl', 'Auth', 'Session'); ) and you have following lines in beforeFilter: $this-Auth-actionPath = 'controllers

Re: ACL problem of the different kind: it allows too much!

2010-09-01 Thread nils
you updated ACOs table before restricting actions (build_acl)? Make shure you have included Acl and Auth components in your AppController  ? ( var $components = array('Acl', 'Auth', 'Session'); ) and you have following lines in beforeFilter: $this-Auth-actionPath = 'controllers/'; $this-Auth

Re: ACL and permissions arent working properly

2010-09-01 Thread Rob
Hey, This is my AppController class AppController extends Controller{ var $components = array('Acl', 'Auth', 'Session'); function beforeFilter(){ $this-Auth-Authorize = 'actions'; $this-Auth-loginAction = array('controller' = 'users', 'action

Re: ACL and permissions arent working properly

2010-09-01 Thread Anthony
If you followed the Auth and ACL examples from the handbook hes referring to the build_acl action. http://book.cakephp.org/view/1549/An-Automated-tool-for-creating-ACOs On Sep 1, 10:54 am, Rob bizarro...@gmail.com wrote: Hey, This is my AppController class AppController extends Controller

Re: ACL and permissions arent working properly

2010-09-01 Thread Rob
like user group and user id from $this-Auth-user I don't understand what could have gone wrong with acl though. -Rob On Sep 1, 12:10 pm, Anthony anthony.c.fra...@gmail.com wrote: If you followed the Auth and ACL examples from the handbook hes referring to the build_acl action. http

Re: ACL and permissions arent working properly

2010-08-31 Thread gome$
On 31 Sie, 00:01, Rob bizarro...@gmail.com wrote: I'm having a problem right now with my application.  I have acl set up and I am using groups for all my users following this tutorialhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application One user group I have set up as denied

Re: ACL and permissions arent working properly

2010-08-31 Thread gome$
On 31 Sie, 00:01, Rob bizarro...@gmail.com wrote: I'm having a problem right now with my application.  I have acl set up and I am using groups for all my users following this tutorialhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application One user group I have set up as denied

Cake best practice with roles or acl

2010-08-31 Thread lauraw
to teammember/add and I would need to handle those cases by not allowing access. If use acl, I would setup all of the allow and deny permissions, but wouldn't I still need to check the group to redirect them to their dashboard? And if a user navigated to an action that wasn't allowed, I would still need

ACL problem of the different kind: it allows too much!

2010-08-31 Thread nils
Hi all, got a bit of an acl/auth problem here...: my usergroup with very few rights should be restricted to few methods. Thus I defined: $group-id = 7; $this-Acl-deny($group, 'controllers'); $this-Acl-deny($group, 'controllers/Messages/index

Re: ACL problem of the different kind: it allows too much!

2010-08-31 Thread nils
btw: no, I didn't leave any $this-Auth-allow('*'); in there.. - It works fine on *some* methods, but not on all! :( On 31 Aug., 16:51, nils nils.th...@gmail.com wrote: Hi all, got a bit of an acl/auth problem here...: my usergroup with very few rights should be restricted to few methods

Re: ACL and permissions arent working properly

2010-08-31 Thread Rob
31, 9:02 am, gome$ gmo...@gmail.com wrote: On 31 Sie, 00:01, Rob bizarro...@gmail.com wrote: I'm having a problem right now with my application.  I have acl set up and I am using groups for all my users following this tutorialhttp://book.cakephp.org/view/1543/Simple-Acl-controlled

ACL and permissions arent working properly

2010-08-30 Thread Rob
I'm having a problem right now with my application. I have acl set up and I am using groups for all my users following this tutorial http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application One user group I have set up as denied from /controllers using $this-Acl-deny($group

Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread miller
When a user is logged in, there are 100's of queries that are run against the database. They come from a $this-Aro-Permission-find call in /cake/libs/controller/api-check(). The function, and corresponding DB calls, are executed once per row in the AROS table. There are 1374 items in that

Re: Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread Jon Bennett
in that table, most are links to users. I inherited this site and I am just starting to learn CakePHP.  Can anyone explain why this is happening and what I need to change to stop it? try http://bakery.cakephp.org/articles/view/acl-caching-using-session hth Jon -- jon bennett - www.jben.net

Re: Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread Jon Bennett
When a user is logged in, there are 100's of queries that are run against the database.  They come from a $this-Aro-Permission-find call in /cake/libs/controller/api-check(). The function, and corresponding DB calls, are executed once per row in the AROS table.  There are 1374 items in that

Re: Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread miller
It is version 1.2.4.8284. On Aug 25, 6:41 am, Jon Bennett jmbenn...@gmail.com wrote: When a user is logged in, there are 100's of queries that are run against the database.  They come from a $this-Aro-Permission-find call in /cake/libs/controller/api-check(). The function, and

Re: Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread miller
Our authentication setup is simple. We have three groups: User, Supplier, Admin. Why would we need a record per user/admin/supplier in the Aros table? -mike On Aug 25, 6:41 am, Jon Bennett jmbenn...@gmail.com wrote: When a user is logged in, there are 100's of queries that are run against

Re: Slow Page Load due to 100's of ACL Queries

2010-08-25 Thread Jon Bennett
rather than one per group. Is it feasible to refactor your ACL so it fits the simpler group based set up in the cakephp book? It could be as simple as: * empty acos, aros, acos_aros * run the init_acl function from the book * add your group based permissions make sure you take a back up first! nb

Re: Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-23 Thread Kyko
I just downloaded it. It looks nice, but I would like to have it in English! =) 2010/8/20 Azril Nazli azril.na...@gmail.com Those who can understand Bahasa Melayu language ( probably who's living in Indonesia,Malaysia,Brunei ) , can read the book. But I use a lot of screenshots in English, so

Re: Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-23 Thread Renato de Freitas Freire
Very nice.. Publish it in google docs... so we can translate to english... (i guess).. Congratz! -- Renato de Freitas Freire ren...@morfer.org On Mon, Aug 23, 2010 at 9:37 PM, Kyko kykoc...@gmail.com wrote: I just downloaded it. It looks nice, but I would like to have it in English! =)

Ebook : CakePHP 1.3 ACL ACO/ARO Control Panel

2010-08-20 Thread Azril Nazli
Those who can understand Bahasa Melayu language ( probably who's living in Indonesia,Malaysia,Brunei ) , can read the book. But I use a lot of screenshots in English, so probably you can follow the tutorial This book is all about building Control Panel to 1. Manage ACOs 2. Assign Permission to

Inquiry, CakePHP Acl

2010-08-19 Thread Bryan de Asis
does CakePHP Acl Component extends through modules? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

how to handle acl for host without shell connection

2010-08-05 Thread Mariano C.
There's a tutorial to realize a very simple authentication control with acl and without possibility for shell connection? I need a very simple system Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

How to use ACL in theme?

2010-07-31 Thread Koala Yeung
I'm writing a theme and I want to display several elements depends on ACL permission of user. I don't want to change every controller for this change. What is the best way to do ACL checking in a theme view file? Koala Yeung Check out the new CakePHP Questions site http://cakeqs.org and help

Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can someone some suggestion for me? Thanks On 29 Lug, 09:41, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 1:16 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can someone some suggestion for me? Yes. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread Xander
someone some suggestion for me? Thanks On 29 Lug, 09:41, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi is it possible use a model in Acl both ARO and ACO? Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread marco.rizze...@gmail.com
Can you tell me how the model has to be configurated? On 29 Lug, 15:04, AD7six andydawso...@gmail.com wrote: On Jul 29, 1:16 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can someone some suggestion for me? Yes. Check out the new CakePHP Questions site http://cakeqs.org and

Re: Model like both ACO and ARO in ACL

2010-07-29 Thread AD7six
On Jul 29, 4:32 pm, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Can you tell me how the model has to be configurated? well, I misread your question. I don't think the core behavior will allow act as both however you can just follow xander's lead. hth, AD Check out the new

Re: how to include new actions in ACL?

2010-07-23 Thread matsakaw
many thanks to both of you. follow up question : after i re-ran build_Acl, i noticed that both build_Acl and initDB are now records in the acos table (although i am not sure if those were already there even before the re-run). is that ok? i mean, i shouldn't be worried from a security

ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find operation to do this? Many Thanks Marco Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: ACL and find all

2010-07-23 Thread marco.rizze...@gmail.com
Have anyone some suggestions about this? On 23 Lug, 13:58, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find

Re: ACL and find all

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 7:58 AM, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I use ACL to control access to model Post made by User. Now I have to find all or paginate all posts that are accessible by a specific user. How can I use ACL inside find operation to do this? Many

Re: ACL and find all

2010-07-23 Thread DCrews
table (private / public / friends) or something, you'd probably have to do a join on your customized permissions table. Depends on how you're implementing what you're doing. On Jul 23, 5:58 am, marco.rizze...@gmail.com marco.rizze...@gmail.com wrote: Hi I use ACL to control access to model Post

ACL problem

2010-07-22 Thread Ambika Kulkarni
Hi Folks, This is the first that I am working on ACL, so I facing lot of problems with ACL. I followed cakephp tutorial and did the way as it is mentioned in the tutorial. Now when i login I am not able to access to any of my controller. As it is giving me following error Warning (512): AclNode

Re: ACL problem

2010-07-22 Thread Ambika Kulkarni
on ACL, so I facing lot of problems with ACL. I followed cakephp tutorial and did the way as it is mentioned in the tutorial. Now when i login I am not able to access to any of my controller. As it is giving me following error Warning (512): AclNode::node() - Couldn't find Aro node identified

Re: ACL problem

2010-07-22 Thread Kirk
i don't know, but this guy said don't use acl for non-record-level permissions: http://groups.google.com/group/cake-php/msg/581096ef10896eea On Thu, Jul 22, 2010 at 7:02 AM, Ambika Kulkarni ambikakulkarn...@gmail.com wrote: I am not understanding how to use aros table... how to add data

Re: how to include new actions in ACL?

2010-07-20 Thread rez...@gmail.com
run build_Acl again On Jul 19, 12:40 pm, matsakaw igebas...@gmail.com wrote: i struggled with Acl/Auth and i admit i just followed the steps without FULLY understanding what i did -- to generate the aros, acos and aros_acos tables using the build_Acl and initDB functions mentioned in the cake

Re: how to include new actions in ACL?

2010-07-20 Thread mattmoy...@gmail.com
matsakaw, there are a few scripts floating around the automagically update your acl tables. This has been working great for me with cakephp 1.3 http://bakery.cakephp.org/articles/view/automatically-load-all-controllers-and-actions-into-aco-tables-for-acl-with-a-cakephp-task You simply drop

Re: how to include new actions in ACL?

2010-07-20 Thread mattmoy...@gmail.com
As a follow up to my former post here is some code to assist you: /** * Rebuild the Acl based on the current controllers in the application * * @return void */ function buildAcl() { $log = array(); $aco = $this-Acl-Aco; $root = $aco-node('controllers

ACL with Users that belongs to many Groups

2010-07-19 Thread marco.rizze...@gmail.com
Hi I'm newbie with cakephp. I have this structure : Users HABTM Groups. Now I would use ACL to manage permissions but ACL is right when the Users belongsTo Groups. I have try to search in the forum but I don't understand if with cakephp ACL it is or isn't possible. Can someone that has tried to do

how to include new actions in ACL?

2010-07-19 Thread matsakaw
i struggled with Acl/Auth and i admit i just followed the steps without FULLY understanding what i did -- to generate the aros, acos and aros_acos tables using the build_Acl and initDB functions mentioned in the cake book/tutorial. i was only too glad then to finally make Acl/Auth work -- my

Cakephp ACL Permission

2010-07-08 Thread malu star
Hi, I have added all controllers action in acos table. and added id of 'Add' action in aros_acos table and linked corresponding aro in acos_aros table. Then i give the permission $this-Acl- allow('raj','Usercontroller','create') after running the site i can't get value 1 in create field

Re: ACL customization

2010-07-07 Thread mirfan
Thanks alot brother On Jul 6, 12:38 pm, jodator joda...@gmail.com wrote: 1 2 - custom login action 3 - well basically the same as 1 2. You can do it all in one login action in users_controller:   function login() {     if ($this-Session-read('Auth.User')) {       //Is acc enabled?    

ACL customization

2010-07-06 Thread mirfan
Hi dear cake developers, I am using cake ACL and Auth component which i want to customize my requirements are: 1. User should not looged in until his account is being verified by admin 2. If he is not verified and try to login he may be redirected to a page informing about his status 3. I have

Re: ACL customization

2010-07-06 Thread jodator
On Jul 6, 8:25 am, mirfan m.irfa...@gmail.com wrote: Hi dear cake developers, I am using cake ACL and Auth component which i want to customize my requirements are: 1. User should not looged in until his account is being verified by admin 2. If he is not verified and try to login he may

Cakephp ACL Permission

2010-07-06 Thread malu star
I have add a function named 'add' in one of my controlller and then i called that action that time i got this Notice ACO permissions key add does not exist in DbAcl::check(). How to solve this notice. please help me to solve this Check out the new CakePHP Questions site http://cakeqs.org and

Re: Cakephp ACL Permission

2010-07-06 Thread Shaz
You need to either manually add the ACO to the database or run the build_acl() function provided in the tutorial. On Jul 6, 11:03 am, malu star malustar2...@gmail.com wrote: I have add a function named 'add'  in one of my controlller and then i called that action that time i got this Notice

Cakephp ACL Permission

2010-07-06 Thread malu star
Hi, I have added all controllers action in acos table. and added id of 'Add' action in aros_acos table and linked corresponding aro in acos_aros table. Then i give the permission $this-Acl- allow('raj','Usercontroller','create') after running the site i can't get value 1 in create field

Re: How To Rely on Group/Role for Auth + Acl

2010-07-05 Thread Anthony
http://book.cakephp.org/view/641/Simple-Acl-controlled-Application http://book.cakephp.org/view/648/Setting-up-permissions function initDB() { $group = $this-User-Group; //Allow admins to everything $group-id = 1; $this-Acl-allow($group, 'controllers'); //allow managers

Re: How To Rely on Group/Role for Auth + Acl

2010-07-05 Thread randy
anthony.c.fra...@gmail.com wrote: http://book.cakephp.org/view/641/Simple-Acl-controlled-Application http://book.cakephp.org/view/648/Setting-up-permissions     function initDB() {     $group = $this-User-Group;     //Allow admins to everything     $group-id = 1;     $this-Acl-allow($group

How To Rely on Group/Role for Auth + Acl

2010-07-03 Thread randy
In my aros_acos table, I do not want to have records related to Users of my site, I would prefer to establish access rights using the Groups for my Users. In the console I want to setup access rules such as this cake acl grant Group.1 Widgets/index read; NOT cake acl grant User.23 Widgets

Re: ACL + allow question..

2010-06-23 Thread nils
in the allow rules? I'm pro'ly just missing a tiny, tiny something, so if someone could shed some light on that, I'd be overjoyed! :) tia, nils On 22 Jun., 16:42, nils nils.th...@gmail.com wrote: I'm having my acl etc all properly installed all right, but as soon as I try to log into my site using

Re: ACL + allow question..

2010-06-23 Thread nils
shed some light on that, I'd be overjoyed! :) tia, nils On 22 Jun., 16:42, nils nils.th...@gmail.com wrote: I'm having my acl etc all properly installed all right, but as soon as I try to log into my site using anything apart from the holy admin account ($this-Acl-allow($group

Re: ACL + allow question..

2010-06-23 Thread Sam
As far as I know, Cake's ACL only has to do with controllers and actions... nothing at all to do with models. Do you have your ARO and ACO trees set up properly? Is controllers set as your root node? On Jun 23, 7:07 am, nils nils.th...@gmail.com wrote: Got a bit further now: it looks as if it's

ACL + allow question..

2010-06-22 Thread nils
I'm having my acl etc all properly installed all right, but as soon as I try to log into my site using anything apart from the holy admin account ($this-Acl-allow($group, 'controllers');) it doesn't work. My idea is, that this could be because my Users Model is associated with heaps of other

Defining Permissions: Cake's Database ACL

2010-06-11 Thread xamako
Good afternoon I'm trying to use Cake ACL. When I try to launch the consultation on the console to create the tables. The result is the following: ♀ Welcome to CakePHP v1.3.2 Console --- App : app Path: C:\Program Files\EasyPHP-5.3.2i

ACL + AUTH Problems/Trouble shooting

2010-06-09 Thread Matt Y
So its obviously nothing new that the documentation on ACL + AUTH implementations is for the most part... lacking I am trying to implement the AclBehavior into my users and groups controllers, but I just can't seem to get them to auto add AROs into my database. I have followed the cake tutorials

Re: ACL + AUTH Problems/Trouble shooting

2010-06-09 Thread tomasz brymora
... are you doing this in prod. or dev. environment at this poing? What are the details of your set up? On 6/9/10 9:26 AM, Matt Y wrote: So its obviously nothing new that the documentation on ACL + AUTH implementations is for the most part... lacking I am trying to implement the AclBehavior

Re: ACL + AUTH Problems/Trouble shooting

2010-06-09 Thread tomasz brymora
: So its obviously nothing new that the documentation on ACL + AUTH implementations is for the most part... lacking I am trying to implement the AclBehavior into my users and groups controllers, but I just can't seem to get them to auto add AROs into my database. I have followed

cakePHP - ACL tutorial SQL Error: 1104

2010-06-07 Thread DisapprovingRabbit
Greetings! I run into a problem/bug in production environment with SQL Error: 1104 when deploying a project secured with the ACL tutorial. The full error: SQL Error: 1104: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread stefano
$this-User-save($this-data) instead of saveField. 2010/5/24 Jon Chin port23u...@gmail.com I'm using Auth and db ACL, but I have an action that screws up my ACL records every time.  I have ACL set up just like the Book instructs.  I'm building a change password page where I want to just update

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread alaxos
Hi ! If you used the code given in the Simple Acl controlled application, it doesn't work out of the box if you save only one User's field. The parentNode() function check if the group_id field is not empty, and if it is, it returns null. This makes the Acl component think the User doesn't have

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread stefano
try with $this-data[User][group_id] = $this-Session- read(Auth.User.group_id); :) s. On May 24, 10:59 am, Jon Chin port23u...@gmail.com wrote: I'm using Auth and db ACL, but I have an action that screws up my ACL records every time.  I have ACL set up just like the Book instructs.  I'm

Re: How do I save a field on my User without breaking the ACL?

2010-06-04 Thread alaxos
. If anyone has the answer, I would be happy to read it. nIcO On 4 juin, 22:25, stefano ssalvat...@gmail.com wrote: try with $this-data[User][group_id] = $this-Session- read(Auth.User.group_id); :) s. On May 24, 10:59 am, Jon Chin port23u...@gmail.com wrote: I'm using Auth and db ACL

Simple Acl controlled Application Tutorial Cannot modify header information

2010-06-03 Thread ArGoN
I've just began to cook cakePHP. I am following Simple Acl controlled Application Tutorial. It's so frustrating that I'm having this error and don't know how to trace it. Right after creating app_controller.php, I started getting this error on add group page. I finnished the steps anyway

Re: ACL users permission settings

2010-05-31 Thread Theaxiom
If you need a row-level-acl solution, you can check out the SuperAuth plugin that extends Auth and Acl for row-level-acl, the repository is located at http://www.github.com/Theaxiom/SuperAuth On May 29, 11:51 pm, John Andersen j.andersen...@gmail.com wrote: Have a look at the sample application

Re: ACL users permission settings

2010-05-30 Thread John Andersen
Have a look at the sample application in the CakePHP manual at: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Maybe that you can use as a beginning and then expand on it? Enjoy, John On May 28, 8:28 am, ET3 earthtechnolo...@gmail.com wrote: I am developing a system

ACL for multiple groups

2010-05-29 Thread ET5
Can any one give me some idea how I can implement ACL for Auth user having multiple groups. Is this possible? Please give me some source code Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

ACL users permission settings

2010-05-28 Thread ET3
I am developing a system where I need to set permission for users to access different groups. I need to build an interface in admin panel so that admin can set this access permission for users. Can any one give me some idea and some source code for this? Check out the new CakePHP Questions site

How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Jon Chin
I'm using Auth and db ACL, but I have an action that screws up my ACL records every time. I have ACL set up just like the Book instructs. I'm building a change password page where I want to just update the password. I run the following commands: $this-User-id = $this-Session-read('Auth.User.id

Re: How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Filipe Teles Rodrigues
I use $this-User-save($this-data) instead of saveField. 2010/5/24 Jon Chin port23u...@gmail.com I'm using Auth and db ACL, but I have an action that screws up my ACL records every time. I have ACL set up just like the Book instructs. I'm building a change password page where I want to just

Re: How do I save a field on my User without breaking the ACL?

2010-05-24 Thread Jon Chin
and db ACL, but I have an action that screws up my ACL records every time. I have ACL set up just like the Book instructs. I'm building a change password page where I want to just update the password. I run the following commands: $this-User-id = $this-Session-read('Auth.User.id'); $this-User

Re: Simple Acl controlled Application

2010-05-23 Thread Jonathan
Yea, it does. I'd have to be pretty old for it not to. Still can't find that file though. I did however get the command line utility to work at my host. On May 22, 12:39 am, Jeremy Burns jeremybu...@me.com wrote: Does your computer allow you do any sort of find across folders and files? Mine

Re: Simple Acl controlled Application

2010-05-23 Thread Jonathan
Sorry. I replied before reading the path you gave me thoroughly. It my haste, I mistook it as the same path that the manual references. So, I did find the file at that path. Thankfully I won't have to use it manually though. Thanks for your response Jeremy. On May 22, 12:39 am, Jeremy Burns

Re: Simple Acl controlled Application

2010-05-21 Thread Jonathan
I'm also unable to find the sql file, db_acl.sql. The php file that is located in app/config/schema is not what I need because I cannot run the command line utility at my host. On Apr 27, 8:51 pm, cricket zijn.digi...@gmail.com wrote: On Apr 27, 5:52 pm, zamees h...@halrotholz.com wrote: Has

Re: Simple Acl controlled Application

2010-05-21 Thread Jeremy Burns
Does your computer allow you do any sort of find across folders and files? Mine does (perhaps it's more modern than yours). I found your missing file! /cake/console/templates/skel/config/schema/db_acl.sql Jeremy Burns jeremybu...@me.com On 21 May 2010, at 21:56, Jonathan wrote: I'm also

Re: Can any One Hellp To imaplement ACL

2010-05-18 Thread Dilip Godhani
Thanks All Dear Frd...! Bye Bye On Tue, May 18, 2010 at 5:11 AM, naidim nai...@gmail.com wrote: You can also try here: http://aranworld.com/article/161/cakephp-acl-tutorial-what-is-it Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

ACL vs Auth when multiple user tables

2010-05-18 Thread pomares
Hi, everyone! I have families that have many caregivers and many clients. Each client and each caregiver belong to one family. I also have staff_members. In the simplest form of the authentication system I want to create, staff would login against the StaffMember model and get routed to one

Re: ACL vs Auth when multiple user tables

2010-05-18 Thread Andrei Mita
You could use two tables for login: users and groups In groups you define ... well... the groups: Staff Members, Caregiver etc Then you link your users to groups via group_id. Based on the group they belong to, you can decide which layout to load. On Tue, May 18, 2010 at 8:28 PM, pomares

Can any One Hellp To imaplement ACL

2010-05-17 Thread Dilip Godhani
Hello Sirr... Can Any one give me good and working tutorial of ACL send me plz Thanks Bye bye -- Dilip Godhani Jr Software Developer, Entourage Solutions e-mail: di...@entouragesolutions.com dilip.godh...@gmail.com Web.: www.entouragesolutions.com m. 9913822582 Check out the new

Re: Can any One Hellp To imaplement ACL

2010-05-17 Thread Jeremy Burns
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Jeremy Burns jeremybu...@me.com On 17 May 2010, at 13:32, Dilip Godhani wrote: Hello Sirr... Can Any one give me good and working tutorial of ACL send me plz Thanks Bye bye -- Dilip Godhani Jr Software Developer

Re: Can any One Hellp To imaplement ACL

2010-05-17 Thread Dilip Godhani
Hello Sir I use that tutorial but in that not provide example step by step can help me to implement ACL!!! Bye Bye On Mon, May 17, 2010 at 6:04 PM, Jeremy Burns jeremybu...@me.com wrote: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application Jeremy Burns jeremybu

<    1   2   3   4   5   6   7   8   9   10   >