[backend/razor] Improve public preview lockdown error message
This commit is contained in:
parent
173fbfb835
commit
d6c8ecaee5
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ public class NoteModel(
|
||||||
return Partial("Shared/FrontendSPA");
|
return Partial("Shared/FrontendSPA");
|
||||||
|
|
||||||
if (security.Value.PublicPreview == Enums.PublicPreview.Lockdown)
|
if (security.Value.PublicPreview == Enums.PublicPreview.Lockdown)
|
||||||
throw GracefulException.Forbidden("Public preview is disabled on this instance");
|
throw GracefulException.Forbidden("Public preview is disabled on this instance.",
|
||||||
|
"The instance administrator has intentionally disabled this feature for privacy reasons.");
|
||||||
|
|
||||||
//TODO: redirect to login (with route as url param) when public preview is disabled
|
//TODO: redirect to login (with route as url param) when public preview is disabled
|
||||||
//TODO: login button
|
//TODO: login button
|
||||||
|
|
Loading…
Add table
Reference in a new issue