Re: simple acl controlled application tutorial

2010-12-14 Thread cricket
On Tue, Dec 14, 2010 at 6:48 PM, georgeman  wrote:
> I'm referring to the tutorial in the Cake manual.
>
> 11.2.4.1 Group-only ACL says: "In case we want simplified per-group
> only permissions, we need to implement bindNode() in User model."
>
> function bindNode($user) {
>    return array('model' => 'Group', 'foreign_key' => $user['User']
> ['group_id']);
> }
>
> This method will tell ACL to skip checking User Aro's and to check
> only Group Aro's.
>
> Every user has to have assigned group_id for this to work.
>
> In this case our aros table will look like this:
>
> ++---+---+-+---+--+--+
> | id | parent_id | model | foreign_key | alias | lft  | rght |
> ++---+---+-+---+--+--+
> |  1 |      NULL | Group |           1 | NULL  |    1 |    2 |
> |  2 |      NULL | Group |           2 | NULL  |    3 |    4 |
> |  3 |      NULL | Group |           3 | NULL  |    5 |    6 |
> ++---+---+-+---+--+--+
> 3 rows in set (0.00 sec)
>
>
> My aros table still shows the individual users.. I'm wondering if
> anybody knows why.

Have a look at this recent (not quite resolved) discussion:
http://groups.google.com/group/cake-php/browse_thread/thread/1a758f5511091d9d/6e83a40c43cbe44c?show_docid=6e83a40c43cbe44c

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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  wrote:
> 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 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  wrote:
> >> On Apr 27, 5:52 pm, zamees  wrote:
>
> >>> Has the 10.2 Tutorial been tested using Cake1.3? I get all sorts of
> >>> warnings and fatal errors. Initially due to sessions, which is never
> >>> explained that it now needs to be explicitely "included" as a
> >>> component, and after that just a random fatal error. The added groups
> >>> never make it into the aros db.
>
> >> Since when did I not have to specify that SessionComponent should be
> >> loaded? Are you ure you didn't have it loaded in AppController before?
> >> That's what I usually do, meaning that I never need to "include" it in
> >> any of my controllers.
>
> >>http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3ht...
>
> >>> Also, there doesnt appear to be a path/to/app/config/sql/db_acl.sql
> >>> file located in a /sql directory, as there is no /sql directory.
>
> >> You should poke around a bit. It's in the app/schema/ dir.
>
> >>> Can someone clarify any of this, or update the tutorial to work with
> >>> 1.3. Does the tutorial work with 1.2?
>
> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
> >>> 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 unsubscribe from this group, send email to
> >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> >>> athttp://groups.google.com/group/cake-php?hl=en
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> >> athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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  wrote:
> 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 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  wrote:
> >> On Apr 27, 5:52 pm, zamees  wrote:
>
> >>> Has the 10.2 Tutorial been tested using Cake1.3? I get all sorts of
> >>> warnings and fatal errors. Initially due to sessions, which is never
> >>> explained that it now needs to be explicitely "included" as a
> >>> component, and after that just a random fatal error. The added groups
> >>> never make it into the aros db.
>
> >> Since when did I not have to specify that SessionComponent should be
> >> loaded? Are you ure you didn't have it loaded in AppController before?
> >> That's what I usually do, meaning that I never need to "include" it in
> >> any of my controllers.
>
> >>http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3ht...
>
> >>> Also, there doesnt appear to be a path/to/app/config/sql/db_acl.sql
> >>> file located in a /sql directory, as there is no /sql directory.
>
> >> You should poke around a bit. It's in the app/schema/ dir.
>
> >>> Can someone clarify any of this, or update the tutorial to work with
> >>> 1.3. Does the tutorial work with 1.2?
>
> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers 
> >>> 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 unsubscribe from this group, send email to
> >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> >>> athttp://groups.google.com/group/cake-php?hl=en
>
> >> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> >> athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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 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  wrote:
>> On Apr 27, 5:52 pm, zamees  wrote:
>> 
>>> Has the 10.2 Tutorial been tested using Cake1.3? I get all sorts of
>>> warnings and fatal errors. Initially due to sessions, which is never
>>> explained that it now needs to be explicitely "included" as a
>>> component, and after that just a random fatal error. The added groups
>>> never make it into the aros db.
>> 
>> Since when did I not have to specify that SessionComponent should be
>> loaded? Are you ure you didn't have it loaded in AppController before?
>> That's what I usually do, meaning that I never need to "include" it in
>> any of my controllers.
>> 
>> http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3http://book.cakephp.org/view/1572/New-features-in-CakePHP-1-3
>> 
>>> Also, there doesnt appear to be a path/to/app/config/sql/db_acl.sql
>>> file located in a /sql directory, as there is no /sql directory.
>> 
>> You should poke around a bit. It's in the app/schema/ dir.
>> 
>>> Can someone clarify any of this, or update the tutorial to work with
>>> 1.3. Does the tutorial work with 1.2?
>> 
>>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>>> athttp://groups.google.com/group/cake-php?hl=en
>> 
>> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> athttp://groups.google.com/group/cake-php?hl=en
> 
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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  wrote:
> On Apr 27, 5:52 pm, zamees  wrote:
>
> > Has the 10.2 Tutorial been tested using Cake1.3? I get all sorts of
> > warnings and fatal errors. Initially due to sessions, which is never
> > explained that it now needs to be explicitely "included" as a
> > component, and after that just a random fatal error. The added groups
> > never make it into the aros db.
>
> Since when did I not have to specify that SessionComponent should be
> loaded? Are you ure you didn't have it loaded in AppController before?
> That's what I usually do, meaning that I never need to "include" it in
> any of my controllers.
>
> http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3http://book.cakephp.org/view/1572/New-features-in-CakePHP-1-3
>
> > Also, there doesnt appear to be a path/to/app/config/sql/db_acl.sql
> > file located in a /sql directory, as there is no /sql directory.
>
> You should poke around a bit. It's in the app/schema/ dir.
>
> > Can someone clarify any of this, or update the tutorial to work with
> >1.3. Does the tutorial work with 1.2?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Simple Acl controlled Application

2010-04-27 Thread cricket
On Apr 27, 5:52 pm, zamees  wrote:
> Has the 10.2 Tutorial been tested using Cake 1.3? I get all sorts of
> warnings and fatal errors. Initially due to sessions, which is never
> explained that it now needs to be explicitely "included" as a
> component, and after that just a random fatal error. The added groups
> never make it into the aros db.

Since when did I not have to specify that SessionComponent should be
loaded? Are you ure you didn't have it loaded in AppController before?
That's what I usually do, meaning that I never need to "include" it in
any of my controllers.

http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3
http://book.cakephp.org/view/1572/New-features-in-CakePHP-1-3

> Also, there doesnt appear to be a path/to/app/config/sql/db_acl.sql
> file located in a /sql directory, as there is no /sql directory.

You should poke around a bit. It's in the app/schema/ dir.
> Can someone clarify any of this, or update the tutorial to work with
> 1.3. Does the tutorial work with 1.2?
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> athttp://groups.google.com/group/cake-php?hl=en

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Simple Acl controlled Application Download?

2009-10-27 Thread xtraorange

Great!  Thanks very much, that's what I was looking for.  :)

On Oct 27, 12:22 pm, jacmoe  wrote:
> I finally understood ACL by reading the excellent tutorials at
> AranWorld.
> There's even a complete, downloadable 
> sample:http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website
>
> Read the rest of his tutorials. It helped me, so why not you? :)
>
> On Oct 27, 7:18 am, xtraorange  wrote:
>
> > Does anyone know if there's somewhere I could download the "Simple Acl
> > controlled Application" tutorial result?
>
> > I was following through the tutorial, but it got to the point where I
> > was more or less copying and pasting, and I think I'd learn more if I
> > could just read through the completed code and learn that way (that's
> > how I learned most of what I know about php at any rate).
>
> > Thanks,
> > xtraorange
--~--~-~--~~~---~--~~
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Simple Acl controlled Application Download?

2009-10-27 Thread jacmoe

I finally understood ACL by reading the excellent tutorials at
AranWorld.
There's even a complete, downloadable sample:
http://aranworld.com/article/170/cakephp-acl-and-auth-sample-website

Read the rest of his tutorials. It helped me, so why not you? :)

On Oct 27, 7:18 am, xtraorange  wrote:
> Does anyone know if there's somewhere I could download the "Simple Acl
> controlled Application" tutorial result?
>
> I was following through the tutorial, but it got to the point where I
> was more or less copying and pasting, and I think I'd learn more if I
> could just read through the completed code and learn that way (that's
> how I learned most of what I know about php at any rate).
>
> Thanks,
> xtraorange
--~--~-~--~~~---~--~~
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Simple Acl controlled application

2009-09-30 Thread Onezino HEAT

i want the source of this tutorial. my aplication return the follow erros:



Warning (512): AclNode::node() - Couldn't find Aro node identified by "Array
(
[Aro0.model] => User
[Aro0.foreign_key] => 3
)
" [CORE\cake\libs\model\db_acl.php, line 191]

Code | Context

$ref=   array(
"Aro0.model" => "User",
"Aro0.foreign_key" => "3"
)
$this   =   Aro
Aro::$name = "Aro"
Aro::$hasAndBelongsToMany = array
Aro::$cacheQueries = false
Aro::$actsAs = array
Aro::$useDbConfig = "default"
Aro::$useTable = "aros"
Aro::$displayField = "id"
Aro::$id = false
Aro::$data = array
Aro::$table = "aros"
Aro::$primaryKey = "id"
Aro::$_schema = array
Aro::$validate = array
Aro::$validationErrors = array
Aro::$tablePrefix = ""
Aro::$alias = "Aro"
Aro::$tableToModel = array
Aro::$logTransactions = false
Aro::$transactional = false
Aro::$belongsTo = array
Aro::$hasOne = array
Aro::$hasMany = array
Aro::$Behaviors = BehaviorCollection object
Aro::$whitelist = array
Aro::$cacheSources = true
Aro::$findQueryType = NULL
Aro::$recursive = 1
Aro::$order = NULL
Aro::$__exists = NULL
Aro::$__associationKeys = array
Aro::$__associations = array
Aro::$__backAssociation = array
Aro::$__insertID = NULL
Aro::$__numRows = NULL
Aro::$__affectedRows = NULL
Aro::$_findMethods = array
Aro::$_log = NULL
Aro::$Aco = Aco object
Aro::$Permission = Permission object
$db =   DboMysql
DboMysql::$description = "MySQL DBO Driver"
DboMysql::$_baseConfig = array
DboMysql::$startQuote = "`"
DboMysql::$endQuote = "`"
DboMysql::$_useAlias = true
DboMysql::$_commands = array
DboMysql::$columns = array
DboMysql::$index = array
DboMysql::$alias = "AS "
DboMysql::$fieldCache = array
DboMysql::$__bypass = true
DboMysql::$__sqlOps = array
DboMysql::$connected = true
DboMysql::$fullDebug = true
DboMysql::$error = NULL
DboMysql::$affected = 0
DboMysql::$numRows = 0
DboMysql::$took = 1
DboMysql::$_result = resource
DboMysql::$_queriesCnt = 1
DboMysql::$_queriesTime = 1
DboMysql::$_queriesLog = array
DboMysql::$_queriesLogMax = 200
DboMysql::$_queryCache = array
DboMysql::$__descriptions = array
DboMysql::$_sources = array
DboMysql::$connection = resource
DboMysql::$config = array
DboMysql::$configKeyName = "default"
DboMysql::$_transactionStarted = false
DboMysql::$cacheSources = true
DboMysql::$_log = NULL
DboMysql::$__booleans = array
DboMysql::$results = resource
DboMysql::$map = array
$type   =   "Aro"
$result =   array()
$table  =   "aros"
$name   =   "User"
$model  =   User
User::$name = "User"
User::$validate = array
User::$belongsTo = array
User::$hasMany = array
User::$useDbConfig = "default"
User::$useTable = "users"
User::$displayField = "id"
User::$id = false
User::$data = array
User::$table = "users"
User::$primaryKey = "id"
User::$_schema = array
User::$validationErrors = array
User::$tablePrefix = ""
User::$alias = "User"
User::$tableToModel = array
User::$logTransactions = false
User::$transactional = false
User::$cacheQueries = false
User::$hasOne = array
User::$hasAndBelongsToMany = array
User::$actsAs = NULL
User::$Behaviors = BehaviorCollection object
User::$whitelist = array
User::$cacheSources = true
User::$findQueryType = NULL
User::$recursive = 1
User::$order = NULL
User::$__exists = NULL
User::$__associationKeys = array
User::$__associations = array
User::$__backAssociation = array
User::$__insertID = NULL
User::$__numRows = NULL
User::$__affectedRows = NULL
User::$_findMethods = array
User::$_log = NULL
User::$Group = Group object
User::$Post = Post object
$tmpRef =   null
$val=   "3"
$key=   "foreign_key"
$queryData  =   array(
"conditions" => array(
"Aro0.model" => "User",
"Aro0.foreign_key" => "3"
),
"fields" => array(
"id",
"parent_id",
"model",
"foreign_key",
"alias"
),
"joins" => array(
array()
),
"order" => "`Aro`.`lft` DESC"
)


if (!$result) {
trigger_error("AclNode::node() - Couldn't find {$type}
node identified by \"" . print_r($ref, true) . "\"", E_USER_WARNING);

AclNode::node() - CORE\cake\libs\model\db_acl.php, line 191
DbAcl::check() - CORE\cake\libs\controller\components\acl.php, line 235
AclComponent::check() - CORE\cake\libs\controller\components\acl.php, line 89
AuthComponent::isAuthorized() -
CORE\cake\libs\controller\components\auth.php, line 480
AuthComponent::startup() -
CORE\cake\libs\controller\components\auth.php, line 402
Component::startup() - CORE\cake\libs\controller\component.php, line 112
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 210
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88

Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in
permissions check.  Node references:
Aro: Array
(
[User] => Array
(
[id] => 3
[username] => heat
[group_id] => 1
[created] => 2009-09-29 17:

Re: Simple Acl controlled Application Tutorial - Problem with release 1.2.5??

2009-09-30 Thread Eric

I was having the same problem today.  I made one change that got rid
of the problem, however, since I'm new to Acl I am not sure that the
change I made is correct.

I changed the line that you have to the following and the fatal error
went away.

$Controllers = Configure::listObjects('controller');

Now when I go to the url: http://localhost/groups/build_acl I get the
following output:

app/controllers/groups_controller.php (line 147)

Array
(
[0] => Created Aco node for Pages
[1] => Created Aco node for display
[2] => Created Aco node for Groups
[3] => Created Aco node for index
[4] => Created Aco node for view
[5] => Created Aco node for add
[6] => Created Aco node for edit
[7] => Created Aco node for delete
[8] => Created Aco node for build_acl
[9] => Created Aco node for Posts
[10] => Created Aco node for index
[11] => Created Aco node for view
[12] => Created Aco node for add
[13] => Created Aco node for edit
[14] => Created Aco node for delete
[15] => Created Aco node for Users
[16] => Created Aco node for login
[17] => Created Aco node for logout
[18] => Created Aco node for index
[19] => Created Aco node for view
[20] => Created Aco node for add
[21] => Created Aco node for edit
[22] => Created Aco node for delete
[23] => Created Aco node for Widgets
[24] => Created Aco node for index
[25] => Created Aco node for view
[26] => Created Aco node for add
[27] => Created Aco node for edit
[28] => Created Aco node for delete
)

After this I get some errors about not having a view for this
controller, but I think that is expected.

Hopefully this helps...

Eric


On Sep 29, 9:10 am, robmcvey  wrote:
> We aregoing through the "Simple Acl controlled Application Tutorial"
> as per the manual.
>
> Everything is going fine until we try and run the "Automated tool for
> creating ACOs" in this section;
>
> http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs
>
> When we run this method we get the follwing Fatal Error;
>
> Fatal error: Call to undefined method App::objects()
>
> The line causing the error is;
>
> $Controllers = App::Objects('controller');
>
> I seem to remember doing this tutorial in an earlier version of cake
> without problems
>
> Anyone have any ideas whats going on? Is this a latest version bug?
>
> Thanks
>
> Rob

--~--~-~--~~~---~--~~
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Simple Acl controlled Application Tutorial - Problem with release 1.2.5??

2009-09-29 Thread brian

I just ran into the same thing recently. Use $Controllers =
Configure::listObjects('controller');

On Tue, Sep 29, 2009 at 10:10 AM, robmcvey  wrote:
>
> We aregoing through the "Simple Acl controlled Application Tutorial"
> as per the manual.
>
> Everything is going fine until we try and run the "Automated tool for
> creating ACOs" in this section;
>
> http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs
>
> When we run this method we get the follwing Fatal Error;
>
> Fatal error: Call to undefined method App::objects()
>
> The line causing the error is;
>
> $Controllers = App::Objects('controller');
>
> I seem to remember doing this tutorial in an earlier version of cake
> without problems
>
> Anyone have any ideas whats going on? Is this a latest version bug?
>
> Thanks
>
> Rob
>
> >
>

--~--~-~--~~~---~--~~
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Simple Acl controlled Application

2009-01-23 Thread AD7six



On Jan 23, 6:04 pm, nowashburn  wrote:
> Hi everyone, Im trying to follow the "Simple Acl controlled
> Application" for cakePHP 1.2 
> here:http://book.cakephp.org/view/641/Simple-Acl-controlled-Application
>
> I thought I was doing good until I got to the "10.2.4 Acts As a
> Requester" part. It tells you to add groups and users using the baked
> forms. So, when I try to add a new user I get the following error:
>
> "Error:  The view for UsersController::login() was not found."
>
> I completely understand that it is looking for a login view, but the
> tutorial NEVER stated to do so at this point. In fact, It doesn't tell
> you to create the login view until later in the tutorial. What should
> I do here?

Please see the last code block: 
http://book.cakephp.org/view/643/Preparing-to-Add-Auth

AD
--~--~-~--~~~---~--~~
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 from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---