summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-11-03 12:37:48 +0100
committermsquare <msquare@notrademark.de>2019-11-03 12:37:48 +0100
commit416c49ae0b8a0f09da9a3cd96590f5ce6e8b1996 (patch)
tree06cef95aa840cedbfc5c25313c64e6a569e4c94c
parent2b27b45aba4ba40a6b601e55073a196f1eb48bb6 (diff)
fix #634 by also allowing only restricted angeltypes
-rw-r--r--includes/pages/user_shifts.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 4c9e536e..5aaec56e 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -133,7 +133,7 @@ function load_types()
{
$user = auth()->user();
- if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes` WHERE `restricted` = 0'))) {
+ if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes`'))) {
error(__('The administration has not configured any angeltypes yet - or you are not subscribed to any angeltype.'));
redirect(page_link_to('/'));
}