Loading src/UnicaenAuth/Assertion/AbstractAssertion.php +4 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ abstract class AbstractAssertion implements AssertionInterface, ServiceLocatorAw $this->init(); switch (true) { case $this->detectPrivilege($resource): // var_dump('assertPrivilege '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertPrivilege(ltrim(strstr($resource, '/'), '/'), $privilege); case $this->detectController($resource): Loading @@ -85,14 +85,15 @@ abstract class AbstractAssertion implements AssertionInterface, ServiceLocatorAw $controller = substr($resource, $spos, $dpos - $spos - 1); $action = substr($resource, $dpos); // var_dump('assertController '.get_class($this).' '.$controller.'.'.$action.' '.$privilege); return $this->assertController($controller, $action, $privilege); case $this->detectEntity($resource): // var_dump('assertEntity '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertEntity($resource, $privilege); default: // var_dump('assertOther '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertOther($resource, $privilege); } } Loading Loading
src/UnicaenAuth/Assertion/AbstractAssertion.php +4 −3 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ abstract class AbstractAssertion implements AssertionInterface, ServiceLocatorAw $this->init(); switch (true) { case $this->detectPrivilege($resource): // var_dump('assertPrivilege '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertPrivilege(ltrim(strstr($resource, '/'), '/'), $privilege); case $this->detectController($resource): Loading @@ -85,14 +85,15 @@ abstract class AbstractAssertion implements AssertionInterface, ServiceLocatorAw $controller = substr($resource, $spos, $dpos - $spos - 1); $action = substr($resource, $dpos); // var_dump('assertController '.get_class($this).' '.$controller.'.'.$action.' '.$privilege); return $this->assertController($controller, $action, $privilege); case $this->detectEntity($resource): // var_dump('assertEntity '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertEntity($resource, $privilege); default: // var_dump('assertOther '.get_class($this).' '.$resource->getResourceId().' '.$privilege); return $this->assertOther($resource, $privilege); } } Loading