Jump to content

add actions with url parms to isAuthorized() function


Iluvatar+

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.

 

i.e:

<?php
if($this->action==Stepone/?fran_id=2){
	if($this->Auth->user('role') == 'user') {
		return true;
	} 
               else   {
      ...
?>

Archived

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.