Fixed tests

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-22 14:12:51 +01:00
parent e0232a8e84
commit a02c62d62c
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -477,7 +477,7 @@ class UsersController extends Controller
}
// check for permissions related fields and pull them out if the current user cannot edit them
if (auth()->user()->can('canEditAuthFields') && auth()->user()->can('editableOnDemo')) {
if (auth()->user()->can('canEditAuthFields', $user) && auth()->user()->can('editableOnDemo')) {
if ($request->filled('password')) {
$user->password = bcrypt($request->input('password'));