Re: ACL in helper

2013-01-15 Thread Jeremy Burns | Class Outfit
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

Re: ACL in helper

2013-01-13 Thread lowpass
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

Re: ACL in helper

2013-01-12 Thread lowpass
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

Re: ACL in helper

2013-01-12 Thread Jamie
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

Re: ACL in helper

2013-01-11 Thread Jamie
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

Re: ACL in helper

2013-01-11 Thread Jeremy Burns | Class Outfit
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

ACL in helper

2013-01-10 Thread Jeremy Burns
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