How do I query the AclAdmin plugin from my app/controllers/
post_controller...?
I have access to my user table.  I have followed these steps:

# Get the code from the Demo download section
# Create the acl tables using the sql script that comes with cake
# Put the plugin into your own application
# Define the name of your user table in the plugin app controller file
# Use the plugin to create the aros, acos and rules as you want for
your own application
# Add the code from the previous post on ACL to check the ACL for each
page request

So I can test rules on the home AclAdmin page and when I test it the
correct users have the correct amount of access.  Sweet. But when I go
to the page it is anyone can access the page..

So I must be misreading or botching something up.  I have tried
tinkering around with adding

$this->requestAction('/AclAdmin/post/index'); Actions like this to
access the plugin although it does not seem to be working..

I have also not been able to get access working for the demo itself.
Everything test properly but nothing is implmented..?

AclAdminAPppController:

var $components = array('AC','Acl');
var $helpers = array();
//Was   var $argSeparator = '|'; // The default is : which is used as an
axo name seperator.
var $argSeparator = ':'; // The default is : which is used as an axo
name seperator.
var $uses = array('Aro','Aco');
var $userModel = 'User';
var $userModelAlias = 'username';
var $AclMode = 'full';

I have also looked at :
http://groups.google.com/group/cake-php/browse_thread/thread/afe4ac6b1e7dc096/7321457990d50bf0?hl=en&lnk=gst&q=AclAdmin#7321457990d50bf0
http://www.ad7six.com/MiBlog/AclPart2

I know that I am missing something that might be obvious and I know I
am very close.  Please let me know if you have any clues..

I also don't know if I am reading this properly and if it relates
which I am sure it does..

"This plugin will allow you to edit the access control rules for your
applicaiton. It does not in itself add access control to your
application - for that you need to query the rules you define here in
your app_controller or whever else is most appropriate to your
situation. However, the download does come with access control applied
to the plugin itself by default, to see and/or edit take a look at the
generic 'noswad' controller that is used in the download.

The plugin is currently using full mode, which means that acos will be
of the form app:controller:action or plugin:controller:action.

You can run a test to see if an aro can access an aco or not here, or
view more detailed info by using the menu above."

Any Help Would be greatly appreciated thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to