Fixed all redirections with appropriate host (as configured).
This commit is contained in:
parent
8c35eed690
commit
191d903b2d
13 changed files with 149 additions and 124 deletions
|
@ -180,14 +180,14 @@ namespace ScrewTurn.Wiki {
|
|||
if(currentPage == null) {
|
||||
// Check permissions for creating new pages
|
||||
if(!canCreateNewPages) {
|
||||
if(SessionFacade.LoginKey == null) UrlTools.Redirect("Login.aspx?Redirect=" + Tools.UrlEncode(Request.Url.ToString()));
|
||||
if(SessionFacade.LoginKey == null) UrlTools.Redirect("Login.aspx?Redirect=" + Tools.UrlEncode(Tools.GetCurrentUrlFixed()));
|
||||
else UrlTools.Redirect("AccessDenied.aspx");
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Check permissions for editing current page
|
||||
if(!canEdit && !canEditWithApproval) {
|
||||
if(SessionFacade.LoginKey == null) UrlTools.Redirect("Login.aspx?Redirect=" + Tools.UrlEncode(Request.Url.ToString()));
|
||||
if(SessionFacade.LoginKey == null) UrlTools.Redirect("Login.aspx?Redirect=" + Tools.UrlEncode(Tools.GetCurrentUrlFixed()));
|
||||
else UrlTools.Redirect("AccessDenied.aspx");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue