From 416c49ae0b8a0f09da9a3cd96590f5ce6e8b1996 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 3 Nov 2019 12:37:48 +0100 Subject: [PATCH] fix #634 by also allowing only restricted angeltypes --- includes/pages/user_shifts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('/')); }