3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-03-09 09:58:44 +00:00

Updated comment, removed log error statement

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-22 13:59:58 +01:00
parent f0fbb3cf36
commit 6ea5693b2f

View File

@ -266,7 +266,7 @@ class UsersController extends Controller
->update(['location_id' => $request->input('location_id', null)]);
// check for permissions related fields and pull them out if the current user cannot edit them
// check for permissions related fields and only set them if the user has permission to edit them
if (auth()->user()->can('editSensitiveUserFields') && auth()->user()->can('editableOnDemo')) {
$user->username = trim($request->input('username'));
@ -301,9 +301,6 @@ class UsersController extends Controller
->update(['location_id' => $user->location_id]);
\Log::error(print_r($user->permissions, true));
// Handle uploaded avatar
app(ImageUploadRequest::class)->handleImages($user, 600, 'avatar', 'avatars', 'avatar');
session()->put(['redirect_option' => $request->get('redirect_option')]);