Skip to content
This repository has been archived by the owner on Feb 15, 2020. It is now read-only.

Commit

Permalink
- Just testing
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Dec 1, 2016
1 parent 89d085f commit 1932ea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/IPub/Permissions/TPermission.php
Expand Up @@ -71,12 +71,16 @@ public function checkRequirements($element)
}

} catch (Application\ForbiddenRequestException $ex) {
/*
if ($redirectUrl) {
$this->getPresenter()->redirectUrl($redirectUrl);
} else {
*/
throw $ex;
/*
}
*/
}
}
}
2 changes: 1 addition & 1 deletion tests/IPubTests/Permissions/AccessTest.phpt
Expand Up @@ -177,7 +177,7 @@ class AccessTest extends Tester\TestCase
*
* @throws Nette\Application\ForbiddenRequestException
*/
public function testNotAllowedLoddedIn(string $username, string $password)
public function testNotAllowedLoggedIn(string $username, string $password)
{
// Create test presenter
$presenter = $this->createPresenter();
Expand Down

0 comments on commit 1932ea5

Please sign in to comment.