Complicated ACL Situation

2011-06-23 Thread chrismina
Hello fellow cake-bakers! I'm making a small application to handle project related information in order to learn how to use CakePHP. I'm having troubles with ACL. The ACL idea is quite straight forward but implementing it on a real-life app proves not to be easy. I would like your suggestions

Re: ACL issue

2011-06-18 Thread Felix Fennell
: Hello everyone, I have a query regarding how to structure the ACL system in my app. Basically i'm creating a management app for a diving club. The club has three broad groups, - Instructors - Trainees - Committee The ACL tree looks like this at the moment - Sebastian (name

Re: How to inactive Acl

2011-06-15 Thread Shaz
http://book.cakephp.org/view/1545/Preparing-to-Add-Auth At the bottom it explains how to allow actions currently not initialised as ACO's. On Jun 13, 7:21 pm, taq taqman...@gmail.com wrote: now I use acl component in my webapp when I add new action I got you unauthorize to access this location

How to inactive Acl

2011-06-13 Thread taq
now I use acl component in my webapp when I add new action I got you unauthorize to access this location I must to build new aco but I lazy I need to build after project complete -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

CakePHP Auth and Acl

2011-06-07 Thread Junior Grossi
Hi all again... I've started my Cake project and I have now to make my login and permissions area. I am following the CakePHP 1.3 Book on the Simple Acl controlled Application (http://bit.ly/juYfI7) to make my login and auth funcionalities working. Is that the unique way to do

Slow Build Acl

2011-05-31 Thread thom
Hello,, I am facing a problem in building acl (build_acl). In the beginning, it was no problem. Everything is OK. But, when my controllers are increasing, building acl is getting slower and 'heavey'. I got maximum exceed. I've increased the time to 240 seconds. But still, appears. Some times, I

Aw: Slow Build Acl

2011-05-31 Thread Jens Dittrich
I assume you have used the build_acl function from the tutorial in the book. I had the same experience in an application with 50 controllers and about 5 functions average per controller. I think the main problem is, that the ACL behaviour is building a tree and this tree has to be sortet after

Aw: Slow Build Acl

2011-05-31 Thread Jens Dittrich
eventually adding some indexes might also help, see: http://www.mainelydesign.com/blog/view/speeding-up-cakephp-acl-component -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Slow Build Acl

2011-05-31 Thread thom
On Tue, May 31, 2011 at 5:53 PM, Jens Dittrich jdittr...@gmail.com wrote: eventually adding some indexes might also help, see: http://www.mainelydesign.com/blog/view/speeding-up-cakephp-acl-component OK. I'll try it. Thank you everyone.. :) -- Regards,,, mastanto (thom_) http

Re: Slow Build Acl

2011-05-31 Thread thom
On Tue, May 31, 2011 at 5:58 PM, thom cyber.phanto...@gmail.com wrote: On Tue, May 31, 2011 at 5:53 PM, Jens Dittrich jdittr...@gmail.com wrote: eventually adding some indexes might also help, see: http://www.mainelydesign.com/blog/view/speeding-up-cakephp-acl-component OK. I'll try

Re: acl for dummies?

2011-05-29 Thread Phang Mulianto
why not try use phpgacl..there is plugin component for cake.. On May 29, 2011 3:21 AM, dreamingmind dreamingmin...@gmail.com wrote: Michael, Non-expert reply: After fiddling with ACL for a while I'll say, yes it can do all you want. The aco entries can represent anything you want them

acl for dummies?

2011-05-28 Thread mivogtGermanyLU
Hi there, after spending some hours of reading the chapert about acl/aro/acro in the cake books and the cake homepage I am still or even more confused about the topic. I understood the meaning of a tree containing the rights but I am absolute not sure about if it matches my needs or even

Re: acl for dummies?

2011-05-28 Thread dreamingmind
Michael, Non-expert reply: After fiddling with ACL for a while I'll say, yes it can do all you want. The aco entries can represent anything you want them to, controllers, actions, individual db records, tabes, urls... Aros can likewise represent anything you choose, users, controllers, actions

Use the Auth or Acl

2011-05-19 Thread argon
hey I'm new in cake and now I initial build my first project and succesful to use Auth component and next step I want to make permission group and I read Acl in book.cakephp and I confused in it . and I try to search other way to I found the auth component It can be done and I have question

Administrator Menu with ACL

2011-05-16 Thread Carachi
Hello, I want to ask if someone know a package to create a dynamic administrator menu based on ACL settings. So if a user login as administrator, he can see all function in his menu; if he isn't the administrator, he can see only the allow function for his group. Thank you very much Bye -- Our

Re: Administrator Menu with ACL

2011-05-16 Thread majna
https://github.com/markstory/cakephp_menu_component On May 16, 11:57 am, Carachi carach...@gmail.com wrote: Hello, I want to ask if someone know a package to create a dynamic administrator menu based on ACL settings. So if a user login as administrator, he can see all function in his menu

Re: Administrator Menu with ACL

2011-05-16 Thread Carachi
://github.com/markstory/cakephp_menu_component On May 16, 11:57 am, Carachi carach...@gmail.com wrote: Hello, I want to ask if someone know a package to create a dynamic administrator menu based on ACL settings. So if a user login as administrator, he can see all function in his menu

Re: ACL issue

2011-05-05 Thread dreamingmind
::12 - Treasurer - etc. - Instructors - Practical - Theory - User::12 - Trainees Regards, Don On May 4, 2:35 pm, Felix fe...@felixfennell.co.uk wrote: Hello everyone, I have a query regarding how to structure the ACL system in my app. Basically

ACL issue

2011-05-04 Thread Felix
Hello everyone, I have a query regarding how to structure the ACL system in my app. Basically i'm creating a management app for a diving club. The club has three broad groups, - Instructors - Trainees - Committee The ACL tree looks like this at the moment - Sebastian (name of site

Auth ACL - How to determine if a user was logged out because of session timeout

2011-04-14 Thread DigitalDude
that, when you click on sth. that is protected by Auth Acl, the user is logged out and needs to log in again. That's fine I think, but when the user is logged out because of a session timeout, the SAME error Message (defined in app controller, AuthError) is displayed to the user. So my question

Re: ACL: extending the DbAcl class

2011-04-11 Thread ojonam
Hi Tim, thanks for your answer, that's what I was looking for :). Wanted to specify, in case someone else is interested, that you need to include the line App::import('Core','Acl'); in my_db_acl.php. Cheers, ojonam On Apr 8, 5:00 pm, Tilen Majerle tilen.maje...@gmail.com wrote: in app

ACL: extending the DbAcl class

2011-04-08 Thread ojonam
Hello all, due to some specific needs for my app with respect to Acl, I have extended the DbAcl class which resides in cake/libs/controllers/ components/acl.php : MyDbAcl extends DbAcl { //lots of code } I do not want this code to reside in the above file, because it is application specific

Re: ACL: extending the DbAcl class

2011-04-08 Thread Tilen Majerle
://majerle.eu 2011/4/8 ojonam manojo10...@gmail.com Hello all, due to some specific needs for my app with respect to Acl, I have extended the DbAcl class which resides in cake/libs/controllers/ components/acl.php : MyDbAcl extends DbAcl { //lots of code } I do not want this code to reside

Acl-allow() Troubles

2011-04-08 Thread DragonFlyEye
I'm getting the error, DbAcl::allow() - Invalid node when attempting to allow node access. The parameters are: $aro= 1$aco = controllers/Pages/delete$actions = *$value = 1$perms = false$permKeys = array( _create, _read,_update,

Re: Acl-allow() Troubles

2011-04-08 Thread DragonFlyEye
Wait. Dang. I just figured it out. Thanks for listening, people. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this

Re: cakephp 1.3.8 plugin ACL Filter on Croogo

2011-04-07 Thread bias
What debug level is set in core.php when you get that blank page? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from

cakephp 1.3.8 plugin ACL Filter on Croogo

2011-04-06 Thread frankitoy
hard to debug. When it goes to the component to AclFIlter thats where seems the problem comes in. Please help me as I try to debug this for 4 consecutive nights now. public $components = array( 'Croogo', 'Security', 'Acl', 'Auth', 'Acl.AclFilter

Re: Is it time for ACL?

2011-04-05 Thread adam_g2000
Thanks Chris, Will do. Adam. On Apr 4, 4:38 pm, Chris theswimmingf...@gmail.com wrote: Sounds perfect to me, And to anticipate any issues you might have... Here is a good little github project that providesACLmanagementhttps://github.com/interlock/acl_plugin Just read it up on the CakePHP

Is it time for ACL?

2011-04-03 Thread adam_g2000
of the site, so that she can show some work, to only some people. So it sounds to me like I need to learn the ACL component. Or is that too complicated for what I'm doing? the site mainly consists of visual 'lists' of links to images (which are in a db of course). In a page of these links, I'm showing

Re: Is it time for ACL?

2011-04-03 Thread Chris
Sounds perfect to me, And to anticipate any issues you might have... Here is a good little github project that provides ACL management https://github.com/interlock/acl_plugin Just read it up on the CakePHP book listed on that project, try out the ACL+Auth setup on a dummy project first

Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread mineiro-df
I'm new cake student and i have problem with ACL on this moment. I managed to make the simple system of limited access of the book of the cake put that I realized an interesting thing. The user who has less is accessed by me to the system in fact it manages to do everything if I to work

Re: Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread John Maxim
. This is the draft, correct sequence. Did any of the steps above sound familiar to you, did you follow that part? On Mar 22, 9:02 pm, mineiro-df jonesguid...@gmail.com wrote: I'm new cake student and i have problem with ACL on this moment. I managed to make the simple system of limited access

Re: acl :: deny access to PostsController

2011-03-16 Thread AKO
Im still playing around with this acl-tutorial and followed it with users,groups,posts,widgets and got it working without problems.. As soon as I shift from from 'posts' to 'tests' the auth and vcl suddenly doesnt apply by magic and you can enter just by pressing a URL to the tests path/to/your

Re: acl :: deny access to PostsController

2011-03-16 Thread AKO
and it worked !! My god! had i only read this days ago :) Hope I can spare others for the same mistake.. AKO On Mar 16, 12:33 pm, AKO anders.konr...@gmail.com wrote: Im still playing around with this acl-tutorial and followed it with users,groups,posts,widgets and got it working without problems

acl :: deny access to PostsController

2011-03-15 Thread AKO
controllers/Tests - user can only view test(results) My question is simple: Why can I enter URL tests/index when im not authorized..?? Even if I set all my permissions to -1 I still can acces directly via URL entering..?? Its like the Auth/Acl is only working on my UsersController and not covering my

AJAX - ACL redirection

2011-02-23 Thread Julien Barbedette
Hi, By default, the Auth component used with the ACL component redirects the user to the referer when this one can't access to the controller/ action (last lines of method startup in auth component): if ($this-isAuthorized($type)) { return true

Re: AJAX - ACL redirection

2011-02-23 Thread Tilen Majerle
login.ctp is SessionHelper::flash() method which will display if any errors accured when login...do u understand? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/2/23 Julien Barbedette barbedette.jul...@gmail.com Hi, By default, the Auth component used with the ACL component redirects

Re: AJAX - ACL redirection

2011-02-23 Thread Tilen Majerle
accured when login...do u understand? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/2/23 Julien Barbedette barbedette.jul...@gmail.com Hi, By default, the Auth component used with the ACL component redirects the user to the referer when this one can't access to the controller

RE: AJAX - ACL redirection

2011-02-23 Thread Krissy Masters
] On Behalf Of Julien Barbedette Sent: Wednesday, February 23, 2011 1:40 PM To: CakePHP Subject: AJAX - ACL redirection Hi, By default, the Auth component used with the ACL component redirects the user to the referer when this one can't access to the controller/ action (last lines of method startup

Re: AJAX - ACL redirection

2011-02-23 Thread Julien Barbedette
pozdrav, Tilen Majerle http://majerle.eu 2011/2/23 Julien Barbedette barbedette.jul...@gmail.com  Hi, By default, the Auth component used with the ACL component redirects the user to the referer when this one can't access to the controller/ action (last lines of method startup in auth

Non-Admin logout issue (ACL)

2011-02-20 Thread sumri
Hi, I'm new in CakePHP. Just setting up ACL for my apps with 3 user groups : - administrators - managers - users There's no issue with login - it's redirect to the right link. I've a problem when users logout. When i logged out with 'administrators' users, the apps will logged and redirect

Re: Non-Admin logout issue (ACL)

2011-02-20 Thread John Andersen
Check what URL you are being given back by $this-Auth-logout()! Enjoy, John On Feb 20, 10:27 am, sumri sumr...@gmail.com wrote: Hi, I'm new in CakePHP. Just setting up ACL for my apps with 3 user groups : - administrators - managers - users There's no issue with login - it's

Re: Several questions about ACL

2011-02-19 Thread piousbox
Obrigado para a resposta. Porém, eu preciso um web-interface para modificar ACO e ARO artigos. não se por que usar o ACL Behavior, ele é mesmo de o padrão ACL component. A coisa q eu deseo é, um interface q permiti um administrator fazer isso sim escrevendo codigo no PHP: $group = $this-User

Several questions about ACL

2011-02-16 Thread piousbox
hello all; I'm setting up an application with complex permissions and I have a bunch of questions. I'm trying to setup a web interface to let administrators specify which groups have which permissions. Is that possible/reasonable? I also want each user to have edit/delete access to their own

Re: Several questions about ACL

2011-02-16 Thread huoxito
I still have'n created a web interace to control permissioins with aros and acos but i guess the Acl component would deal with most of the stuff. Are you using the Acl behavior on your user model? I don't think that user should be repeated on the aros table ... -- Our newest site

Through ACL for all view.

2011-02-09 Thread sanjibdhar...@gmail.com
I have one app where ACL is not integrated yet.Now want to integrate ACL.Where I have to do such a way that only admin can add data.Can I now by ACL add authentication such as all view except add can access by other user. -- Our newest site for the community: CakePHP Video Tutorials http

ACL Tutorial SQL statements

2011-02-07 Thread Cyrus
Im not quite sure if I just don't see it, but in http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application#!/view/1544/Preparing-our-Application it says Execute the following SQL statements into your database. where there are no SQL statements on the whole page. Could someone tell

Re: ACL Tutorial SQL statements

2011-02-07 Thread José Lorenzo
This issue was recently fixed, please visit the book page again to see correct code samples On Feb 7, 11:32 am, Cyrus martin.pfundm...@googlemail.com wrote: Im not quite sure if I just don't see it, but inhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application#!... it says

Re: ACL Tutorial SQL statements

2011-02-07 Thread Cyrus
thank you! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

some error with ARO/ACO ACL

2011-02-01 Thread hoss7
i use cakephp(v1.3.7) ACL i have this error: Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] = Array ( [id] = 1 [username] = root [group_id] = 1 [created] = 2011-02-01 07:19:20 [modified] = 2011-02-01 07:50:36 ) ) Aco: Pages

Re: Need advice for custom ACL

2011-01-28 Thread AD7six
your rules change at run time and are user specific - I wouldn't use acl to solve it, unless you use iniacl. hth AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking the Auth session status and echoing out the controller

CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking the Auth session status and echoing out the controller

Is Admin routing really required (a better way) when using an ACL implementation ?

2011-01-28 Thread OldWest
Was looking for some feedback on this. I am currently using an ACL implementation on my project, and it seems to be working fine. I wanted to know what (if) there are any benefits to suing this in conjunction with Admin Routing. Are there any benefits to using Admin Routing with the ACL

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread AD7six
On Jan 28, 8:20 pm, OldWest ja...@jasonwydro.com wrote: Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking

Re: Is Admin routing really required (a better way) when using an ACL implementation ?

2011-01-28 Thread AD7six
On Jan 28, 8:35 pm, OldWest ja...@jasonwydro.com wrote: Was looking for some feedback on this. I am currently using an ACL implementation on my project, and it seems to be working fine. I wanted to know what (if) there are any benefits to suing this in conjunction with Admin Routing

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Hey AD7six, I am not sure why I would do all of that if I can just check the Auth status and echo out the edit controls as necessary.. Maybe I did not understand your reply properly. What is the benefit of using that .js? -- Our newest site for the community: CakePHP Video Tutorials

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread AD7six
On Jan 28, 10:45 pm, OldWest ja...@jasonwydro.com wrote: Hey AD7six, I am not sure why I would do all of that if I can just check the Auth status and echo out the edit controls as necessary.. Maybe I did not understand your reply properly. What is the benefit of using that .js? you asked

Re: Need advice for custom ACL

2011-01-27 Thread Zaky Katalan-Ezra
In that case my honest advice to you is to revise your design. If it's not simple it's should simply not (In Hebrew it sounds better) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
the only alternative path i can see is to make hundreds of controllers, each with his own specific model. this will lead to hundreds of controllers. Right now i'm acting this way: - i use the standard Cake ACL to prevent unwanted page views. - i added an Authorization model, with HABTM

Re: Need advice for custom ACL

2011-01-27 Thread ShadowCross
-user('id'); // Create list of authorizations that user has $authorizations = array(); foreach(array('Bar/Y_1', 'Bar/Y_2', 'Bar/Y_3') as $aco) { if ($this-Acl-check($aro, $aco) { $authorizations

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
(array('Bar/Y_1', 'Bar/Y_2', 'Bar/Y_3') as $aco) {                         if ($this-Acl-check($aro, $aco) {                                 $authorizations[] = $aco;                         }                 }                 $this-set(compact('authorizations'));         } foo/edit.ctp

Need advice for custom ACL

2011-01-26 Thread Ernesto
Hello. in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
hi, in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. in your opinion, what's the best way

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ Not sure what else to suggest, interested to hear if/how you solve it! -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community: CakePHP Video Tutorials

Re: Need advice for custom ACL

2011-01-26 Thread Zaky Katalan-Ezra
not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks like you need to create an engine to create your views on the fly. -- Our newest site for the community: CakePHP Video Tutorials http

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
They don't refer to anything particular. Look @ my example in first post On 26 Gen, 18:40, Zaky Katalan-Ezra procsh...@gmail.com wrote: not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks

Re: ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-25 Thread raymond
Yeah. my mistake. The post I referred also was saying user(id). :D Thanks for your kind reply. Raymond. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP

Re: ACL how controll more type of action?

2011-01-24 Thread alaxos
Actually you can do exactly what you say with CakePHP ACL. By default, the AclComponent allow() and deny() methods save 1 and -1 respectively for all fields _create, _read, _update and _delete. Then if you use the AclComponent to check if a user is authorized to do some actions, the check() method

ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-24 Thread raymond
Hi, everyone. I ve entered CakePHP world recently and bumped into one issue. I need to get logged users information, especially primary key value in user table. I have tried $this-Auth-user[id] because I have read it from one post in this group, but I checked that $this-Auth does not have any user

Re: ACL How to get logged user information, like user name, id in user table, group name, etc.

2011-01-24 Thread alaxos
If it is not a typo, the reason is that it is not $this-Auth- user[id] but $this-Auth-user(id). user() is a function of the AuthComponent, not a property. Regards, nIcO On Jan 24, 11:49 am, raymond raymond...@gmail.com wrote: Hi, everyone. I ve entered CakePHP world recently and bumped into

Re: ACL how controll more type of action?

2011-01-23 Thread Petr Vytlačil
I understand ACL logic and what is ACO etc... But I thing this solution is stupid. Why I should setting premissions (update,delete,save,add) for action deleteItems of some Controller. Its sure I want only check if i can call deleteItems for this i dont need check if i has premission for update

Re: ACL how controll more type of action?

2011-01-23 Thread Petr Vytlačil
I understand ACL logic and what is ACO etc... But I thing this solution is stupid. Why I should setting premissions (update,delete,save,add) for action deleteItems of some Controller. Its sure I want only check if i can call deleteItems for this i dont need check if i has premission for update

Cake Newbie with ACL implementation question

2011-01-20 Thread mackdaddy
[Warehouse Admin] - Administer their own warehouse e.g. Create products, locations, users etc [Warehouse User] Ultimately there will probably 6 warehouses but the local users can change. Could anyone explain if the ACL route will work for me and if so how. Muchus Gracias MackDaddy

Re: login/logout Issue with acl tutorial

2011-01-20 Thread andy_the ultimate baker
hi, to go back to login page after logoutt all u need to sett that logoutt redirect action. like bellow function logout() { $this-Session-setFlash('You have successfully logged out'); $this-Auth-logout(); $this-redirect(array('action'='login'));

Acl Tutorial: trying to logout

2011-01-19 Thread opike
I finished implementing the acl tutorial here: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application and it was working for the most part, I was testing logging in and out with the different users. But now it's in a state where it won't let me access any of the other pages

login/logout Issue with acl tutorial

2011-01-19 Thread opike
I just impleted the acl tutorial: http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application and I did the following to test it out. Logged in with user1 (member of the administrator group). Fine. Logged out by issuing the url http://localhost/cake/app/users/logout. Fine. Logged

Re: login/logout Issue with acl tutorial

2011-01-19 Thread opike
Sorry, this is a duplicate post. Since it took 4 hours for my original post to show up I wasn't sure if I had submitted it properly. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Acl Tutorial: trying to logout

2011-01-19 Thread opike
I think I fixed this by adding this line to the beforeFilter() method: $this-Auth-allow('logout'); On Jan 19, 10:10 am, opike hastapast...@gmail.com wrote: I finished implementing the acl tutorial here:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application and it was working

Re: ACL Question

2011-01-18 Thread John Maxim
regardless of what the action does in relation to CRUD. I guess I'm still a bit confused here. On Jan 15, 11:02 pm, John Maxim goog...@gmail.com wrote: Hi Ed, You can customise your users permission using ACL plugin. I suggest finding one on your own, the current one I use has a drawback

Re: ACL Question

2011-01-17 Thread CrotchFrog
can customise your users permission using ACL plugin. I suggest finding one on your own, the current one I use has a drawback when I have over 10 groups with different permission settings. The role permission setting stops working. However, it's still effective if I view users roles or users

CakePHP ACL [Failed ARO/ACO node lookup in permissions check]

2011-01-17 Thread DatacenterHellas
Hello. I have create an application with CakePHP that uses the ACL. In my database I have this data: AROS: = |__ID__|__PARENT_ID__|__MODEL|__FOREIGN_KEY__| __ALIAS__|_lft__|_rght_

Re: CakePHP ACL [Failed ARO/ACO node lookup in permissions check]

2011-01-17 Thread DragonFlyEye
gave them a patch over at Lighthouse - but I haven't seen it yet. I would love to take some time and rewrite parts of the ACL documentation in the book but oh, man, is that a tall order. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

ACL Question

2011-01-15 Thread Ed Propsner
I've been plugging away with Cake for some time now with extremely few issues. I recently decided that ACL was the right choice for my app ... now I have issues :) I've toyed with it long enough now that I understand the concept and mechanics of it but the issue I'm having is this: When granting

Re: ACL Question

2011-01-15 Thread John Maxim
Hi Ed, You can customise your users permission using ACL plugin. I suggest finding one on your own, the current one I use has a drawback when I have over 10 groups with different permission settings. The role permission setting stops working. However, it's still effective if I view users roles

Re: ACL for cakephp 1.3

2011-01-14 Thread jsalonen
Hope this helps: http://jsalonen.com/2010/10/role-based-acl-in-cakephp/ 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

ACL for cakephp 1.3

2011-01-13 Thread danieln
Hi, anyone came across any tutorials for cakephp 1.3 acl? I'm very new to cakephp and the most important thing I need to learn is to get the auth acl working together. Hope someone can advise on this. If you have done it, I hope you can give me some samples too. Thanks! Check out the new

Re: ACL for cakephp 1.3

2011-01-13 Thread Tilen Majerle
http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/1/12 danieln daniel.n...@gmail.com Hi, anyone came across any tutorials for cakephp 1.3 acl? I'm very new to cakephp and the most important thing I need to learn

Re: Best way to achieve my ACL goal?

2011-01-12 Thread jsalonen
The way I've done this is define the ACOs to be roles and check the user's access to the required role with Acl-check. That way you can have multiple roles in a tree-structure and the access checks are super simple. There are drawbacks though: which role is required for each action is hardcoded

Re: ACL how controll more type of action?

2011-01-12 Thread Andi
Hi, I think that you didn't understand the complex ACL logik. But it is really complex. The actions update, delete, save, add are the actions for the ACO. So the first question is: what is an ACO? It is an Access Control Object. Read here more about the logic: http://book.cakephp.org/view/465

Re: Best way to achieve my ACL goal?

2011-01-11 Thread Jens Dittrich
I have asked a similar question a few days ago. If I understood you correctly, then you basically want people to be member of more than one group. I have been told that I would leave the normal acl way there and I would have to implement my authentication myself. Basically something like

Re: Best way to achieve my ACL goal?

2011-01-10 Thread Pehmolelu
Any advice is appreciated 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 to cake-php@googlegroups.com To

ACL how controll more type of action?

2011-01-09 Thread Petr Vytlačil
Hi in ACL you can controll only action (update, delete, save, add) It is bad because app can has more other metod is any solutuion how control access for other methor for example: Controller Users Function list(){ .. } THX Check out the new CakePHP Questions site http://cakeqs.org

Re: Acl and bindNode()

2011-01-08 Thread Jens Dittrich
...@gmail.com wrote: On Fri, Jan 7, 2011 at 7:25 AM, Jens Dittrich jdittr...@gmail.com wrote: Hi all! I have a little problem with the Acl. I have Users beloging to Roles. I want to set my Acl to check the Roles only, since a per User based system is not planned. So I followed the tutorial

Re: Acl and bindNode()

2011-01-08 Thread Jeremy Burns | Class Outfit
I've been advised to look at the new ACL behaviour as it might hold the key. I haven't done so yet, so can't vouch. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 8 Jan 2011, at 10:05, Jens Dittrich wrote: So it seems that the documentation is correct

Acl and bindNode()

2011-01-07 Thread Jens Dittrich
Hi all! I have a little problem with the Acl. I have Users beloging to Roles. I want to set my Acl to check the Roles only, since a per User based system is not planned. So I followed the tutorial from the Book 1.3 (http://book.cakephp.org/view/1547/Acts-As-a-Requester) where it describes

Best way to achieve my ACL goal?

2011-01-07 Thread Pehmolelu
Hi folks! :) Im building a website and decided to use CakePHP as framework. So Im totally new to the framework and Im not familiar with alots of things. I have though spent tens of hours reading the CookBook througtly. I have a problem with ACL in my website, which is the reason Im writing

Re: Acl and bindNode()

2011-01-07 Thread cricket
On Fri, Jan 7, 2011 at 7:25 AM, Jens Dittrich jdittr...@gmail.com wrote: Hi all! I have a little problem with the Acl. I have Users beloging to Roles. I want to set my Acl to check the Roles only, since a per User based system is not planned. So I followed the tutorial from the Book 1.3

Acl

2011-01-05 Thread Jens Dittrich
Hello everyone, I have a problem with Acl. I have an Application where my ACO's are my Controllers and their functions. My ARO's should be Roles that People are in. The setup looks like this: User hasOne Person Person hasAndBelongsToMany Roles In the tutorials the setup is simpler, there you have

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