forked from itccsro/volunt-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a permission_error page for permission related messages
Related to issue itccsro#22, instead of logging of the users anytime there is a permission issue, now the user will be redirected to a permission_error page that does not log him off. If the user was not logged in in the first place, the behavior is not changed, the user will be redirected to the login page with a relevant message instead.
- Loading branch information
Catalin
committed
Jul 27, 2017
1 parent
8c7fc43
commit 0a24965
Showing
3 changed files
with
15 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,12 @@ | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-lg-6 col-lg-offset-3"> | ||
<%= render partial: 'shared/notice' %> | ||
<div class="login-form panel panel-default text-center"> | ||
Higher level permissions are required to access the requested resource. | ||
<br /><br /> | ||
<%= link_to "Click here to go back.", :back %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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