Now displaying checkmark by default when user is set to VIP

This commit is contained in:
Julian Prieber 2023-12-05 22:39:13 +01:00
parent 7b9a3ae956
commit 64938046b7
1 changed files with 6 additions and 0 deletions

View File

@ -242,6 +242,12 @@ public function SendTestMail(Request $request)
$customBackground = $request->file('background'); $customBackground = $request->file('background');
$theme = $request->theme; $theme = $request->theme;
if(User::where('id', $id)->get('role')->first()->role =! $role) {
if ($role == 'vip') {
UserData::saveData($id, 'checkmark', true);
}
}
if ($request->password == '') { if ($request->password == '') {
User::where('id', $id)->update(['name' => $name, 'email' => $email, 'littlelink_name' => $littlelink_name, 'littlelink_description' => $littlelink_description, 'role' => $role, 'theme' => $theme]); User::where('id', $id)->update(['name' => $name, 'email' => $email, 'littlelink_name' => $littlelink_name, 'littlelink_description' => $littlelink_description, 'role' => $role, 'theme' => $theme]);
} else { } else {