Added Demo mode

Demo mode allows to safely run a demo version of the app, with destructive features limited.

Some bugs were also fixed in this commit.
This commit is contained in:
2021-09-04 00:44:54 +01:00
parent 8942623bde
commit 3f4bc28fd4
29 changed files with 385 additions and 83 deletions

View File

@@ -41,6 +41,19 @@
<div class="container-fluid">
@if ($demoActive)
<div class="row">
<div class="col">
<div class="alert alert-warning">
<p class="font-weight-bold"><i class="fas fa-exclamation-circle"></i> Attention</p>
<p>Demo mode is active on this instance. The database is refreshed daily and some features are disabled for security reasons.</p>
<p>If you're seeing this message in error, please contact your system administrator.</p>
</div>
</div>
</div>
@endif
<div class="row">
<div class="col text-center">