Jump to content

add actions with url parms to isAuthorized() function


Recommended Posts

Is it possible to have access controll on url parms. For example i have a CreatePage controller but each created page will have a franchise_id related to it and stored in it's table. I want to be able to allow and deny specific franchises within the CreatedPages controller.



	if($this->Auth->user('role') == 'user') {
		return true;
               else   {

Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.