Sounds like a good approach - I'll give it a whirl. Thanks.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 13 Jan 2013, at 04:40:06, Jamie jamie@gmail.com wrote:
How does that help? Well, you asked how to access ACL information inside your
plugin. That's how. As for referencing
On Sat, Jan 12, 2013 at 11:40 PM, Jamie jamie@gmail.com wrote:
How does that help? Well, you asked how to access ACL information inside
your plugin.
I think what Jeremy was getting at was that you suggested creating
another helper, which doesn't make sense.
I agree that the permissions
You could fetch an array of routes (arrays) that the user can access
and pass it to the view. Pretty kludgy, though.
I've found that sometimes putting something into a plugin is far more
trouble than it's worth. Helpers, too, for that matter.
On Sat, Jan 12, 2013 at 1:09 AM, Jeremy Burns | Class
How does that help? Well, you asked how to access ACL information inside
your plugin. That's how. As for referencing the ACL component inside of
your helper, while technically possible, that's not the best practice since
you'd be mixing the view and controller layers (since helpers live in the
Do you mean that you want to use check the user's permissions inside your
plugin's helper? In that case, I would write another helper that you can
use to check all of the ACL permissions.
On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote:
I have a Navigation plugin that
How does that help? Why wouldn't I reference the Acl component inside my
current helper?
For clarity... the helper parses a config file an build up an menu that
contains one or many links - typically lis into a ul. I want to be sure
that the current user has permissions for 'this' action
I have a Navigation plugin that contains a helper. It's used for creating
menus dynamically. I want to check a user's permissions via ACL before
adding a menu item. How can I user the ACL component inside the plugin?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter