fix #634 by also allowing only restricted angeltypes

This commit is contained in:
msquare 2019-11-03 12:37:48 +01:00
parent 2b27b45aba
commit 416c49ae0b
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ function load_types()
{ {
$user = auth()->user(); $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.')); error(__('The administration has not configured any angeltypes yet - or you are not subscribed to any angeltype.'));
redirect(page_link_to('/')); redirect(page_link_to('/'));
} }