Thank you thats what I needed to know where the controller was for the pages controller. Of great help thank you for your time. Steve
On Feb 4, 4:18 pm, daphonz <[EMAIL PROTECTED]> wrote: > Do you need to do permissions checking on the home page? In you > app_controller.php file, you can set the actions that trigger the auth > checking using the othAuthRestrictions var. Also, in addition to > allowing access to orders and stock, you can add additional rules to > let them access the pages controller (which is a core controller used > to display page files). > > Also, I think you need to add permissions so like so: > > /groups/* > /pages/* > > or: > > /pages/home.html > > For things to work properly. > > Hope this helps. > > -Casey > > On Feb 3, 10:27 am, SteveScan <[EMAIL PROTECTED]> wrote: > > > Hi, > > Please bear with me as I am new to PHP and CakePHP. > > I have implemented Authentication using the OthAuth component (http:// > > bakery.cakephp.org/articles/view/othauth-component-v0-5-4-5). > > > In the groups table I have created 1, administrators ; 2 orders ; 3 > > stock. > > In the permissions table I have created 1, *; 2, order ; 3, stock. > > Hence Group 1 has access to everything. Orders Group has permissions > > on controller "order", and Stock Group has permissions on the Stock > > controller. These have been assigned in the group permissions table. > > > Group 1 administrators can access everything (including the home > > page). However Groups 2 and 3 (Orders and Stock) CAN NOT ACCESS THE > > HOME PAGE!!!!???? > > > How do I set this up at the home page is defined in app/views/pages/ > > home.thtml. > > > There is NO Controller for the HOME PAGE so how do I assign ALL Groups > > permission(s) to access the home page in the permissions table or is > > there some other mechanism. > > > Other than the fact that ALL groups Except the administrators > > (permissions set to "*") access their own area's fine BUT CAN NOT SEE > > the HOME page!!! HELP! > > > And how do I set up a nice "Sorry you are not permitted to see this > > page" other than a flash message and then re-direct to the home page > > that hopefully ALL will be able to see. > > > Other than this it all appears to be fine I am missing something that > > I do not understand. > > > Thank you all for your help in advance. > > > SteveScan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
