mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PHPStan fixes (#13038)
* PHPStan fixes mostly type fixes semi-risky changes in availability map widget, tested a bit * fix style * Style fix * restore spaces stupid editor removed * fix the rest * device model back * remove ignores * introduce variable
This commit is contained in:
@@ -70,7 +70,7 @@ class UserController extends Controller
|
||||
$this->authorize('create', User::class);
|
||||
|
||||
$tmp_user = new User;
|
||||
$tmp_user->can_modify_passwd = LegacyAuth::get()->canUpdatePasswords(); // default to true for new users
|
||||
$tmp_user->can_modify_passwd = (int) LegacyAuth::get()->canUpdatePasswords(); // default to true for new users
|
||||
|
||||
return view('user.create', [
|
||||
'user' => $tmp_user,
|
||||
|
||||
Reference in New Issue
Block a user