Re: ACL for some fields

2009-04-15 Thread Khaled al-Horani
thanks, it was really helpful ... On Apr 15, 10:51 am, yodi y...@yodi.web.id wrote: In my ways using ACL, i'm create 2 function in Controller, example : function usersWrite() and function adminWrite(). Then we can set : $this-Auth-mapActions(array('usersWrite'='read')); if($this-Acl-check

ACL clarification

2009-04-15 Thread Toby Mathews
Hi All, I'm setting up Auth and ACL on a site, to manage access to the admin area, and I'm just looking for clarification. I've been looking at the Simple Acl controlled Application in the example applications section of the manual, and also the Access Control Lists bit (under Core Components

ACL for some fields

2009-04-14 Thread koko
Hello all bakers, I've used ACL many times before, but with a new site I have a problem that can be solved manually but I want to do it in ACL way (if any). Let's say I have a posts table, in posts table there is 'id', 'title', 'body' and 'notes', I want to give the user only the ability

Re: ACL denied access to logout()

2009-04-11 Thread AD7six
On Apr 10, 8:50 pm, djXternal trobr...@gmail.com wrote: I have finally managed to get my ACL working, realized I was having issues using UUID's, now the super user can access everything fine when logged in and logout.  But users with privledges lesser than that user, who do now have access

Re: ACL - How to handle multiple nested levels of accounts

2009-04-11 Thread jmcneese
i guess the theoretical limit on a 32bit system is 4,294,967,296 (2^32), but my first question would be do you need unlimited groups, or unlimited roles? roles being the classification of user where actual ACL permissions are attached (role a can access the users::add method, but role b

Help determining Users/Groups and ACL Permissions

2009-04-11 Thread fly2279
I have the tables: Users, Groups, and GroupsUsers. Users belongToMany Groups. I'm using ACL to manage Users (aros) having crud access to Groups (acos) and individual Users (acos). For example User.1 belongs to Group.A and Group.B and has create/read/ update to Group.A. User.2 belongs to Group.A

Re: ACL - How to handle multiple nested levels of accounts

2009-04-10 Thread zonium
Thank you jmcneese for showing me an alternative to the cake's ACL. Your articles help me understand weaknesses of ACL when used to safeguard records. It's was interesting to see immediate attentions/ reactions from the core developers on those articles as well. One problem (in my case

ACL denied access to logout()

2009-04-10 Thread djXternal
I have finally managed to get my ACL working, realized I was having issues using UUID's, now the super user can access everything fine when logged in and logout. But users with privledges lesser than that user, who do now have access to the 'Users' controller cannot logout. When I go to /Users

Setting up ACL permissions

2009-04-09 Thread djXternal
Hey everyone I have been following the tutorial on setting up an ACL system, and everything has gone well until I got the the section on setting permissions: http://book.cakephp.org/view/648/Setting-up-permissions I put in the initDb() code they give you there, but when I try and load the page

ACL - How to handle multiple nested levels of accounts

2009-04-07 Thread zonium
I'm rebuilding the admin part of a legacy application which has multiple account types and multiple levels of authority and I’m thinking using ACL and seeking some advice. Here are some background: The application needs to handle 4 types of accounts 1-Administrators 2-ContentManagers 3

Re: Using ACL in View?

2009-04-07 Thread Stinkbug
I believe the proper MVC way to do it is to do the check in your controller and set the variables for you view. So in your controller you might have something like this: if ($this-Acl-check(your acl info)) { $this-set('admin', true); } Then in your view you would simple check the $admin

Re: ACL - How to handle multiple nested levels of accounts

2009-04-07 Thread jmcneese
using ACL and seeking some advice. Here are some background: The application needs to handle 4 types of accounts 1-Administrators 2-ContentManagers 3-SiteModerators 4-Authors and  several types of resources: - Content - Report Levels of accounts and rules are  as followed: Administrators

Re: Using ACL in View?

2009-04-07 Thread Faza
Similiar to what I had in mind, thanks for the input nevertheless :) *thumbs up* Jacek Stinkbug pisze: I believe the proper MVC way to do it is to do the check in your controller and set the variables for you view. So in your controller you might have something like this: if ($this-Acl

Re: containable, bindModel, and record-level ACL (oh my!)

2009-04-07 Thread brian
in: groups controller: $group_aro = $this-Acl-Aro-find( 'first', array( 'conditions' = array( 'model' = 'Group', 'foreign_key' = $group_id ), 'recursive' = -1 ) ); $volume_nodes

Acl Not Denying Users

2009-04-06 Thread trevorsg
Hey guys, I hope someone can give me some hints; this problem has had me stumped for quite some while now. I'm sort of new to CakePHP. I'm trying to set up my own application using ACL. I've read all of the tutorials at the Cookbook, and I'm pretty sure I followed them correctly. I have my

RE: Woes of ACL

2009-04-06 Thread Dave Maharaj :: WidePixels.com
-Original Message- From: trevorsg [mailto:trevo...@gmail.com] Sent: April-06-09 2:07 AM To: CakePHP Subject: Woes of ACL Hey guys, I've been trying to solve an issue with ACL for two days now, but I just can't find any answers. Basically I'm trying to set up an application to work

redirecting with ACL

2009-04-06 Thread atta
hi how can i check for group id and redirect after login to admin site and if it was a member then public member area. I have same login section for both Admin and members. I am trying to do something like this. if($this-Auth-user('group_id')== 5){ $this-Auth-loginRedirect =

Woes of ACL

2009-04-06 Thread trevorsg
Hey guys, I've been trying to solve an issue with ACL for two days now, but I just can't find any answers. Basically I'm trying to set up an application to work with Auth and Acl. I followed the tutorials in the Cookbook - I created the database tables, all of the ACOs and AROs are created

Re: redirecting with ACL

2009-04-06 Thread atta
i have solved this issue like this if($this-Auth-user('group_id')== 5){ $this-redirect(array('controller'='admin/categories', 'action'='add')); } else if($this-Auth-user('group_id')== 6){ $this-redirect(array('controller'='Pages', 'action'='display')); } but it more looks like a hack as its not

Using ACL in View?

2009-04-06 Thread Faza
Hello all, just happily finished setup of group-based ACL in my app, thanks to brilliant tutorial on Cake site. Nevertheless, despite looking around I haven't found any way (known to a noob like me) to use a function similiar to $this-Acl-check() in View, for, say, hiding certain sections

Re: Woes of ACL

2009-04-06 Thread trevorsg
'))) { // what user is trying to access $page = $this-params['controller'] . '/' . $this-params ['action']; // check if user can access page. if (!$this-Acl-check(array('User' = $this-userId), $page

Re: Weird ACL update problem....

2009-04-06 Thread Matt
: $aroAlias = User::.$userid;                         $acoAlias = Supplier::.$id;                         if ($this-Acl-check($aroAlias, $acoAlias, 'update'))                         {                                 $this-set('supplier', $this-Supplier-read(null, $id

containable, bindModel, and record-level ACL (oh my!)

2009-04-06 Thread brian
I have a model, Volume, for which I want to limit access from Group, using record-level ACL. Volume is also stored using MPTT (TreeBehavior). So far, I've been able to create the entries in aros, acos, aros_acos. Now, what I need to do is figure out a way to display the Volume tree (easy

Admin Routing + ACL admin_xxx is not accessible

2009-04-03 Thread atta
hi all I have searched alot and everybody is discouraging to use both admin routing + acl at a time. Can anybody tell me how can i access admin_xxx if a group is valid for it. Thanks Atta --~--~-~--~~~---~--~~ You received this message because you

Weird ACL update problem....

2009-04-01 Thread Matt
; $acoAlias = Supplier::.$id; if ($this-Acl-check($aroAlias, $acoAlias, 'update')) { $this-set('supplier', $this-Supplier-read(null, $id)); if (!empty($this-data

Re: ACL for groups

2009-03-29 Thread brian
Eddie ollit...@gmail.com wrote: Yes if you read the ACL section of the manual it clearly states to use null for the top level group. It is advisable in my opinion to make one group 'entire_site' and give yourself unfettered access without having to declare things individually. THis group would

RABC vs. ACL Smackdown

2009-03-28 Thread aranworld
Some guy left a comment on a blog that said that I shouldn't be using CakePHP, because its use of ACL is very antiquated. The guy was obviously trying to promote his own PHP framework that uses RABC instead. After reading about RABC, though, I'm having a bit of a hard time understanding

Re: RABC vs. ACL Smackdown

2009-03-28 Thread brian
on a blog that said that I shouldn't be using CakePHP, because its use of ACL is very antiquated.  The guy was obviously trying to promote his own PHP framework that uses RABC instead.  After reading about RABC, though, I'm having a bit of a hard time understanding the difference between RABC

Re: ACL for groups

2009-03-28 Thread Smelly Eddie
Yes if you read the ACL section of the manual it clearly states to use null for the top level group. It is advisable in my opinion to make one group 'entire_site' and give yourself unfettered access without having to declare things individually. THis group would have a parent id of nul

Re: ACL for groups

2009-03-28 Thread brian
, Smelly Eddie ollit...@gmail.com wrote: Yes if you read the ACL section of the manual it clearly states to use null for the top level group. It is advisable in my opinion to make one group 'entire_site' and give yourself unfettered access without having to declare things individually

ACL and Individual Users

2009-03-28 Thread Dave Maharaj :: WidePixels.com
Can someone help me understand how / if possible to define individual user permissions using ACL? Is there a good site that explains it? I read thru the Lord of the Rings and see you can define the permissions by hard coding it. But for my application the permissions need to be created / deleted

Re: ACL and Individual Users

2009-03-28 Thread brian
Maybe ACL isn't really needed for this. You could have a users_courses table that defined the cut-off date. On Sat, Mar 28, 2009 at 3:49 PM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: Can someone help me understand how / if possible to define individual user permissions using

Re: ACL and Individual Users

2009-03-28 Thread rartavia
Hi, have you looked at http://book.cakephp.org/view/641/Simple-Acl-controlled-Application. I think it might just be what you need to understand a way to do so, that one actions oriented but you could use that concept for your needs. Good luck

Re: ACL for groups

2009-03-27 Thread djiize
For nested groups, you should read this post: http://edwardawebb.com/programming/php-programming/cakephp/nested-trees-cakephp In ACL, I (personnaly) think it's a good idea to have a ROOT group, even if you don't use it now, maybe later ;) If you don't want one, a NULL value should suffice

Re: ACL for groups

2009-03-27 Thread brian
, 2009 at 5:27 AM, djiize seb.jou...@free.fr wrote: For nested groups, you should read this post: http://edwardawebb.com/programming/php-programming/cakephp/nested-trees-cakephp In ACL, I (personnaly) think it's a good idea to have a ROOT group, even if you don't use it now, maybe later ;) If you

ACL for groups

2009-03-26 Thread brian
I need to have nested groups, so the table has a parent_id column. But, should top-level groups have a NULL parent_id? Or would there have to be a ROOT group, so to speak? I'm having a real hard time sorting all this out. --~--~-~--~~~---~--~~ You received this

Re: ACL Design

2009-03-25 Thread Smelly Eddie
solution. On Mar 24, 7:53 am, James K james.m.k...@gmail.com wrote: Unless you need the ability to have fine grained, unique permissions on a per-user basis, then I would avoid entering your users into the ARO table (like most ACL tutorials suggest). Instead add your roles to the ARO table

ACL Design

2009-03-24 Thread mguthrie
of filtering by organization ID. Can the CakePHP ACL give me that kind of flexibility? Can a user have different rights to the same database tables depending on which organization they are currently working as? This may be confusing so if anyone needs me to clarify please let me know. Thanks

Re: ACL Design

2009-03-24 Thread Smelly Eddie
ACL can give you all the flexibility you need really. This seems like a straight forward solution. If I, eddie, am an Admin for Loco's Tacos, but only a user for Mary's Margaritas, then you can give me permissions as such. allow eddie CRUD rights on Employee records for locos tacos allow

Re: ACL Design

2009-03-24 Thread mguthrie
for a very efficient solution. On Mar 24, 7:53 am, James K james.m.k...@gmail.com wrote: Unless you need the ability to have fine grained, unique permissions on a per-user basis, then I would avoid entering your users into the ARO table (like most ACL tutorials suggest). Instead add your roles

Tutorial on User control and ACL

2009-03-24 Thread rocket
Hello I'm moving from 1.1 to 1.2 and want to set up a whole user registration system using ACL. I went through the tutorial, but am very interested in seeing a proper implementation of user control instead of coming up with a naive implementation. Does anyone have any suggestions at source

ACL - How to list all grants by ACO and action

2009-03-22 Thread Smelly_Eddie
I understand using ACL to grant, revoke, check, etc on a specific ACO. My curiosity is how to list all IDs of a particular model I have access to. So it there is a user named Fee (ARO). And I grant Fee access to read the following items (ACOs) Ship, Paper, Milly. Is there a simple means

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
', 'recursive' = 1, 'conditions' = array( 'Aro.id' = $this-Session-read ('Auth.User.id') ) ) ); On Mar 22, 11:13 pm, Smelly_Eddie ollit...@gmail.com wrote: I understand using ACL to grant, revoke, check, etc

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread gimmebucks
('Auth.User.id') ) ) ); make sure you put var $uses = array('ArosAco') in your controller. and On Mar 22, 11:13 pm, Smelly_Eddie ollit...@gmail.com wrote: I understand using ACL to grant, revoke, check, etc on a specific ACO. My curiosity is how

Re: ACL - How to list all grants by ACO and action

2009-03-22 Thread Smelly Eddie
')                           )                    )              ); make sure you put var $uses = array('ArosAco') in your controller. and On Mar 22, 11:13 pm, Smelly_Eddie ollit...@gmail.com wrote: I understand using ACL to grant, revoke, check, etc on a specific ACO. My curiosity is how to list all IDs of a particular model

Acl warnings

2009-03-18 Thread seamaster
Hi, i made the example with the acl from http://book.cakephp.org/view/467/Defining-Permissions-Cake-s-Database-ACL and i have the following warning : Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: warriors/Aragorn Aco: Weapons [CORE/cake

ACL Question

2009-03-18 Thread Dave Maharaj :: WidePixels.com
I have been reading more into ACL and with help from the Cake Group it is making more sense so I thank you! I have a question I was hoping for some advice on. My idea involves 2 Groups of Users which have no direct access with each other initially. Where say AGENTS belong to a GROUP

Re: Users with ACL problem

2009-03-16 Thread dr. Hannibal Lecter
What brian is suggesting is the following: 1. Right not your ARO (requester) is a User, which forces you to distinguish between students and teachers 2. If you make Teacher an ARO and Student another ARO, you eliminate that problem (this is easily done with ACL) On Mar 16, 3:12 am, Dave Maharaj

RE: Users with ACL problem

2009-03-16 Thread Dave Maharaj :: WidePixels.com
and STUDENT based on user_id USER MODEL: var $actsAs = array('Acl' = array('requester')); function parentNode() { if (!$this-id empty($this-data)) { return null; } $data = $this-data; if (empty($this-data)) { $data

RE: Users with ACL problem

2009-03-16 Thread Dave Maharaj :: WidePixels.com
and his TEACHER USER_ID is the USER ID = 38 (create both the USER and TEACHER at the same time). Now as it stands I have no problem using ACL, AUTH all logging in perfect and allowed actions and all that good stuff as it is supposed to. But when it comes to the view edit delete actions I want to allow

Some ACL Advice Please - Multiple Group Membership

2009-03-15 Thread Smelly_Eddie
So I have finally broken down in my stubborn ways and agreed to accept Cake's Acl component. After walking through the manual I believe it will make it into all my future sites. The trouble I am having is to add it to one of my old sites. I am not looking for technical advice so much

Users with ACL problem

2009-03-15 Thread Dave Maharaj :: WidePixels.com
USER_ID). So when either signs up it creates a USER and a TEACHER or STUDENT with the USER_ID being the USER ID. I chose to break the USERS for the TEACHERS and STUDENT because the profiles are completely different and have different validation criteria. Now when add the Auth and ACL I want to now

Re: Users with ACL problem

2009-03-15 Thread brian
for the TEACHERS and STUDENT because the profiles are completely different and have different validation criteria. Now when add the Auth and ACL I want to now set it so the TEACHER or STUDENT can edit their own contributions to the site. Where I am finding the headache is when checking to see if the user

RE: Users with ACL problem

2009-03-15 Thread Dave Maharaj :: WidePixels.com
Yes that is correct. Both the TEACHERS and STUDENTS have a user_id field which is the USER ID. -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: March-15-09 10:20 PM To: cake-php@googlegroups.com Subject: Re: Users with ACL problem But Teacher should also have

Re: Users with ACL problem

2009-03-15 Thread brian
that is correct. Both the TEACHERS and STUDENTS have a user_id field which is the USER ID. -Original Message- From: brian [mailto:bally.z...@gmail.com] Sent: March-15-09 10:20 PM To: cake-php@googlegroups.com Subject: Re: Users with ACL problem But Teacher should also have a user_id

RE: Users with ACL problem

2009-03-15 Thread Dave Maharaj :: WidePixels.com
Over my head...this is my first attempt using Cake and with ACL and AUTH and everything else its just overwhelming... So I am not even sure what your trying to explain to me. Forgive my rookie aspect. Still trying to figure out the contain message you sent to me. When you want to list your

Multiple User Levels Without ACL

2009-03-13 Thread Chez17
I am trying to code a system with 3 different user levels, admin, technicians, and clients. They all have logins and will use the users controller. My question is a philosophical one, not a technical one. So I have the technicians and clients, for the most part they are similar, but they will be

Re: Multiple User Levels Without ACL

2009-03-13 Thread brian
appreciated, thanks. Whether you use ACL or not, I'd recommend that you create models for each of these. You can put all of the common stuff (esp. username password). How you then associate User with the other models depends on what you want to do and your preferences, as there are a couple of options

Re: Multiple User Levels Without ACL

2009-03-13 Thread Chez17
, thanks. Whether you use ACL or not, I'd recommend that you create models for each of these. You can put all of the common stuff (esp. username password). How you then associate User with the other models depends on what you want to do and your preferences, as there are a couple of options

String 'NULL' inserted instead of value NULL with ACL, MSSQL. Help?

2009-03-11 Thread George
I've been grinding away with ACL on a project, and I'm running into what appears to be a bug with the ACL code and dbo_mssql.php. Basically inserting new aco records fail due to cake generating incorrect SQL code (it puts single quotes around a NULL, thus inserting the string NULL, not NULL

Re: String 'NULL' inserted instead of value NULL with ACL, MSSQL. Help?

2009-03-11 Thread George
change the last part to strtolower($data) == 'null' to catch any form of NULL instead. On Mar 11, 9:04 am, George geo...@hakumei.net wrote: I've been grinding away with ACL on a project, and I'm running into what appears to be a bug with the ACL code and dbo_mssql.php. Basically inserting new aco

Re: ACL creation on registration

2009-03-10 Thread Fred
getting ACL to function properly. Everything works as long as you are logged in. However, now I want to dynamically create a user when they register (i.e. they aren't logged in). So I create the user (that works) and then create a realm (a realm is requester for ACL and basically maps users

ACL for specific resources?

2009-03-10 Thread brian
Is it possible to set an ACO on specific rows? As an example, if I have an Item table, could I have some Groups be able to read Item.43, while not Item.44? Same goes for other CRUD operations. A lot of the ACL information I've been seeing suggests that I can do this, but I haven't seen any

Re: ACL and Auth with additional checking

2009-03-10 Thread brian
Thanks for posting all this. I've just started--yesterday--trying to work out how to go about something similar. I haven't used ACL at all and I was really confused about row-level access. It looks like I'll be able to adapt your code for my use. The one big difference is that I'll need

Understanding ACL

2009-03-09 Thread Dave Maharaj :: WidePixels.com
I have been reading more into ACL in the Cookbook and have been making changes to the application I have been working on. I see in the cookbook: Fellowship of the Ring (Deny: all) * Warriors (Allow: Weapons, Ale, Elven Rations, Salted Pork) * Aragorn (Allow: Diplomacy

ACL creation on registration

2009-03-09 Thread Fred
I am having trouble getting ACL to function properly. Everything works as long as you are logged in. However, now I want to dynamically create a user when they register (i.e. they aren't logged in). So I create the user (that works) and then create a realm (a realm is requester for ACL

Acl debugging help

2009-03-08 Thread Fred
I am getting a really strange behavior and I cannot figure out how to debug it. I have my ACL component setup as so: - controller - ACO's are realms a user is part of (permissions are given by realm) This works great when I add/modify through the admin routines auto generated. However, I now

Re: Acl debugging help

2009-03-08 Thread Fred
they are related somehow. On Mar 9, 12:30 am, Fred fb...@multiply.it wrote: I am getting a really strange behavior and I cannot figure out how to debug it. I have my ACL component setup as so: - controller - ACO's are realms a user is part of (permissions are given by realm) This works great

ACL Scenario

2009-03-06 Thread Dave
Wondering if I could get some general feed back on what would be the best way to set up ACL with a situation like this. Education site basically. A User signs up and during registration they select they teaching professional level ( Pre-School thru Grade 12 each with a value in the database 1-13

Re: ACL and Auth with additional checking

2009-03-01 Thread Aidan Lister
('Created Aco node: %s/%s/%s', $root_alias, $volume['Volume']['number'], $paper['Paper']['slug'])); $this-Acl-Aco-create(); $row = array('parent_id' = $parent_id, 'foreign_key' = $paper['Paper']['id'], 'model' = 'Paper', 'alias' = $paper ['Paper']['slug

Re: ACL and Auth with additional checking

2009-03-01 Thread Aidan Lister
'); $nodes = $this-Acl-Aro-findByForeignKeyAndModel($user_id, 'User'); foreach ($nodes['Aco'] as $node) { if ($node['model'] === 'Paper') { $papers[] = $node['foreign_key']; } // Get children from volumes if ($node['model

ACL and Auth with additional checking

2009-02-28 Thread Aidan Lister
Hello, I need to do some additional row level ACL access control for two of my models. My system has the following groups: admins, editors, authors and users. I'm restricting access to my controller actions using the Auth component, via $this-Auth-authorize = 'actions'. At the moment, my

Admin login and user login without ACL

2009-02-27 Thread Dhana
in creating the admin pages, but I was wondering if I could create a separate login for admins so that only they can access the admin tasks. The acl component looks a little too complex for my current app. --~--~-~--~~~---~--~~ You received this message because you

Re: Admin login and user login without ACL

2009-02-27 Thread Sam Sherlock
tasks. The acl component looks a little too complex for my current app. --~--~-~--~~~---~--~~ 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 unsubscribe

Auth and ACL

2009-02-26 Thread Dave Maharaj :: WidePixels.com
I am following the tutorial on Auth and ACL on http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-2 But seem to be stuck on the part regarding You can create ACO objects from the Acl shell or You can use the AclComponent. Shell usage looks like: cake acl create aco root

Re: Auth and ACL

2009-02-26 Thread Ricky Paz
Hello, the command is correct and, in this example, don't type it, because it is int the function buildAcl(), on second line. This example just shows you how to add acos, using that command, but the hard work of add all controllers is done by buildAcl.

Another Auth and ACL question

2009-02-26 Thread Dave Maharaj :: WidePixels.com
I just finished setting up the AUTH and ACL as in the cookbook. Now when I log in as any user from different groups I can access every page on the site but I get this : [Config] = Array ( [userAgent] = 8edf52fc0bebeb96d0f1c90b95f1a465 [time] = 1235718036

Using ACL

2009-02-25 Thread Dave Maharaj :: WidePixels.com
I want to setup a site where there are 2 authorized pages and what to know what the best approach would be? To use the ACL and Auth component or just Auth. The site is pretty basic with 2 core pages: User/Profile: where users can view/edit their profile when logged in Posts: where logged

Re: Using ACL

2009-02-25 Thread banesto
would be? To use the ACL and Auth component or just Auth. The site is pretty basic with 2 core pages: User/Profile: where users can view/edit their profile when logged in Posts: where logged in users can view/edit(their own post)/add posts Because of the simplicity is it best to just use

How forwards-compatible is Cake's ACL?

2009-02-24 Thread james revillini
I'm just wondering if Cake's system of doing ACL is the smartest way to implement control logic in a way that will be easy to maintain as the system progresses. It seems that when access control is implemented at the record level, we wind up with a lot of extra work to do (and the potential

Is ACL right to use to filter records based on membership?

2009-02-20 Thread james revillini
I'm trying to get my head around ACL and figure out if it will be able to filter the available data down to what the user is authorized to see, or if it's just going to lock them out. Example: a regular user visits /departments/index/ (the controller wants to do a Department-paginate

Understanding Acl with Auth

2009-02-18 Thread rinda
Hi, I spent days understanding this acl stuff. I made progress but still I have groups: id:1, name:administrators id:2, name:managers id:3, name:users I have users: id:1, name:admin, group_id:1 id:2, name:mana, group_id:2 id:3, name:user, group_id:3 I have aros: id:1, parent_id:null

Auth/ACL and redirect to home

2009-02-18 Thread Timothy Western
I am coming back to CakePHP after having given it a rest for a few months, and am really enjoying the new features in 1.2. I've gone through and used Mark Story's fabulous auth and ACL tutorial, and have it working pretty well, but there is one thing I'm not sure about. I know if you

Re: Auth/ACL - edit forms and password problems

2009-02-17 Thread Chris
, 5:21 pm, Chris c.gra...@hpani.org.uk wrote: Perhaps I am just having a blonde moment, but I seem to be having difficulties with ACL and passwords. I followed the example athttp://book.cakephp.org/view/641/Simple-Acl-controlled-Application and then once I was confident of what I

Re: ACL throwing self-joined model into infinite recursion

2009-02-17 Thread benjam
://pastebin.com/f7426e0c4 On Feb 16, 8:55 am,benjambenjamwel...@gmail.com wrote: I have just com across a very strange issue with Cake.  I have ACL installed in my app, and I havre a self-referencing table in that app as well (Parent-Child). That's nothing to do with ACL and almost

Re: ACL throwing self-joined model into infinite recursion

2009-02-16 Thread benjam
Here are some (hopefully) relevant code snippits: http://pastebin.com/f7426e0c4 On Feb 16, 8:55 am, benjam benjamwel...@gmail.com wrote: I have just com across a very strange issue with Cake.  I have ACL installed in my app, and I havre a self-referencing table in that app as well (Parent

Re: ACL throwing self-joined model into infinite recursion

2009-02-16 Thread AD7six
On Feb 16, 9:21 am, benjam benjamwel...@gmail.com wrote: Here are some (hopefully) relevant code snippits:http://pastebin.com/f7426e0c4 On Feb 16, 8:55 am, benjam benjamwel...@gmail.com wrote: I have just com across a very strange issue with Cake.  I have ACL installed in my app, and I

Re: ACL throwing self-joined model into infinite recursion

2009-02-16 Thread benjam
benjamwel...@gmail.com wrote: Here are some (hopefully) relevant code snippits:http://pastebin.com/f7426e0c4 On Feb 16, 8:55 am, benjam benjamwel...@gmail.com wrote: I have just com across a very strange issue with Cake.  I have ACL installed in my app, and I havre a self-referencing

Auth/ACL - edit forms and password problems

2009-02-16 Thread Chris
Perhaps I am just having a blonde moment, but I seem to be having difficulties with ACL and passwords. I followed the example at http://book.cakephp.org/view/641/Simple-Acl-controlled-Application and then once I was confident of what I was doing implemented it into my current project. It has

Re: Auth/ACL - edit forms and password problems

2009-02-16 Thread dr. Hannibal Lecter
I hope this might be of some help: http://dsi.vozibrale.com/articles/view/manually-hashing-password-and-password-validation On Feb 16, 5:21 pm, Chris c.gra...@hpani.org.uk wrote: Perhaps I am just having a blonde moment, but I seem to be having difficulties with ACL and passwords. I

ACL throwing self-joined model into infinite recursion

2009-02-15 Thread benjam
I have just com across a very strange issue with Cake. I have ACL installed in my app, and I havre a self-referencing table in that app as well (Parent-Child). In my app_controller, I pull data for the self-referencing model for every page load (it runs the menu), and it works fine for all

Plugin to implement ACl whit cakephp

2009-02-13 Thread Jonathan Calderon Roa
HI¡, anything know some plugin to implement ACL whit cakephp?, please I need it --~--~-~--~~~---~--~~ 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

[ask] Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi
Hello everybody, for a weeks, i struggle learning about ACL. Then, i have something weird in my app. I'm using $this-Auth-authorize = 'crud'; in my app_controller.php. Every i'm trying to logout, this is happend : Auth::startup() - Attempted access of un-mapped action logout in controller

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread Gwoo
Actually you should probably use Auth-allow('logout') in your users controller. Also, if you want to add to the actionMap then use Auth::mapActions(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi
Thanks, Gwoo, it works fine right now! On Tue, 2009-02-10 at 08:46 -0800, Gwoo wrote: Actually you should probably use Auth-allow('logout') in your users controller. Also, if you want to add to the actionMap then use Auth::mapActions();

ACL question regarding Acl example

2009-02-09 Thread Dcahrakos
Hi, I just started using cakePHP, im almost done reading through the documents, but I was wondering something, I was reading the example for the ACL controlled application, and on one part it says Our controllers and models are now prepped for adding some initial data, and our Group and User

Re: ACL question regarding Acl example

2009-02-09 Thread Mirthis
by bake with allow you to perform the basics Create, Read, Update and Delete operation for all your entities, including Users and Groups. The link bettween this entities and ACL is not automatic bt it requires the implementation of some code in both the User and Group model. You should find all the info

ACL/AUTH redirecting.

2009-02-06 Thread maestro777
With the ACL/Auth set up, is there a way to redirect to a specific view in the event of a user who is logged in but does not have permission to a particular action? I believe by default, it redirects to the login page. What I would like to accomplish are: 1. If the user is not logged

Re: saveAll() and Auth/Acl - redirecting to login page??

2009-01-28 Thread releod
to the Auth session or anything like that.. What gives? How would I even start to try and track this down? I tried removing Auth and Acl from my components in AppController, and the validation worked multiple times without asking me to login again - so at this point I assume something somewhere

saveAll() and Auth/Acl - redirecting to login page??

2009-01-27 Thread releod
start to try and track this down? I tried removing Auth and Acl from my components in AppController, and the validation worked multiple times without asking me to login again - so at this point I assume something somewhere is happening to the Auth'd session. Any help on this would be great, I am

<    5   6   7   8   9   10   11   12   13   14   >