mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-30 20:52:28 +00:00
Let level/profile owners delete comments
This commit is contained in:
parent
f93c6dc8a2
commit
0972375b05
4 changed files with 9 additions and 9 deletions
|
@ -137,10 +137,8 @@ public class LoginForm : BaseLayout
|
|||
}
|
||||
|
||||
|
||||
if (string.IsNullOrWhiteSpace(redirect))
|
||||
{
|
||||
return this.RedirectToPage(nameof(LandingPage));
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(redirect)) return this.Redirect("~/");
|
||||
|
||||
return this.Redirect(redirect);
|
||||
}
|
||||
|
||||
|
@ -148,7 +146,7 @@ public class LoginForm : BaseLayout
|
|||
public IActionResult OnGet()
|
||||
{
|
||||
if (this.Database.UserFromWebRequest(this.Request) != null)
|
||||
return this.RedirectToPage(nameof(LandingPage));
|
||||
return this.Redirect("~/");
|
||||
|
||||
return this.Page();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue