Fix typo in config, default group on registration and edit comparison
This commit is contained in:
parent
74be132f47
commit
96f4e1b3a8
|
@ -17,7 +17,7 @@ return [
|
|||
// Enable maintenance mode (show a static page)
|
||||
'maintenance' => (bool)env('MAINTENANCE', false),
|
||||
|
||||
// Application name (not the event name!)
|
||||
// Application name (not the event name)
|
||||
'app_name' => env('APP_NAME', 'Engelsystem'),
|
||||
|
||||
// Set to development to enable debugging messages
|
||||
|
|
|
@ -135,7 +135,7 @@ function admin_user()
|
|||
}
|
||||
|
||||
$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]
|
||||
);
|
||||
if (!empty($angel_highest_group)) {
|
||||
|
|
|
@ -299,7 +299,7 @@ function guest_register()
|
|||
}
|
||||
|
||||
// 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) {
|
||||
auth()->setPassword($user, $request->postData('password'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue