-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added 403 template as zfcRbac's template expects an array
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<h1>A 403 error occured</h1> | ||
<p> | ||
<?php if ($error == 'error-route-unauthorized') : ?> | ||
Identity (with roles <?php echo implode(',', $identity->getRoles() instanceof \Doctrine\ORM\PersistentCollection ? $identity->getRoles()->toArray() : $identity->getRoles());?>) is not authorized to access <?php echo $route;?>. | ||
<?php elseif ($error == 'error-controller-unauthorized') : ?> | ||
Identity (with roles <?php echo implode(',', $identity->getRoles()instanceof \Doctrine\ORM\PersistentCollection ? $identity->getRoles()->toArray() : $identity->getRoles());?>) is not authorized to access <?php echo $controller;?> | ||
<?php if ($action) : ?> | ||
::<?php echo $action;?>Action() | ||
<?php endif;?> | ||
. | ||
<?php elseif ($error == 'error-rbac') : ?> | ||
RBAC error<br/> | ||
<?php if ($this->message) : ?> | ||
<?php echo $this->message;?> | ||
<?php endif;?> | ||
<?php endif;?> | ||
</p> |