mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +00:00
Apply suggestion from code review
This commit is contained in:
parent
46dfd3dc11
commit
83ca4ce9c8
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class UserPageController : ControllerBase
|
|||
if (token == null) return this.Redirect("~/login");
|
||||
|
||||
// Deny request if in read-only mode
|
||||
if (ServerConfiguration.Instance.UserGeneratedContentLimits.ReadOnlyMode) return this.BadRequest();
|
||||
if (ServerConfiguration.Instance.UserGeneratedContentLimits.ReadOnlyMode) return this.Redirect("~/user/" + id);
|
||||
|
||||
if (msg == null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue