Fix typo in config, default group on registration and edit comparison

This commit is contained in:
Igor Scheller 2022-10-24 00:07:05 +02:00
parent 74be132f47
commit 96f4e1b3a8
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ return [
// Enable maintenance mode (show a static page) // Enable maintenance mode (show a static page)
'maintenance' => (bool)env('MAINTENANCE', false), 'maintenance' => (bool)env('MAINTENANCE', false),
// Application name (not the event name!) // Application name (not the event name)
'app_name' => env('APP_NAME', 'Engelsystem'), 'app_name' => env('APP_NAME', 'Engelsystem'),
// Set to development to enable debugging messages // Set to development to enable debugging messages

View File

@ -135,7 +135,7 @@ function admin_user()
} }
$angel_highest_group = DB::selectOne( $angel_highest_group = DB::selectOne(
'SELECT `group_id` FROM `UserGroups` WHERE `uid`=? ORDER BY `group_id` LIMIT 1', 'SELECT group_id FROM `UserGroups` WHERE `uid`=? ORDER BY `group_id` DESC LIMIT 1',
[$user_id] [$user_id]
); );
if (!empty($angel_highest_group)) { if (!empty($angel_highest_group)) {

View File

@ -299,7 +299,7 @@ function guest_register()
} }
// Assign user-group and set password // Assign user-group and set password
Db::insert('INSERT INTO `UserGroups` (`uid`, `group_id`) VALUES (?, -20)', [$user->id]); Db::insert('INSERT INTO `UserGroups` (`uid`, `group_id`) VALUES (?, 20)', [$user->id]);
if ($enable_password) { if ($enable_password) {
auth()->setPassword($user, $request->postData('password')); auth()->setPassword($user, $request->postData('password'));
} }