Clearer (if longer) gate name

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-17 20:47:20 +01:00
parent 1bb5dc7e69
commit a0d2cb8a03
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -476,7 +476,7 @@ class UsersController extends Controller
return response()->json(Helper::formatStandardApiResponse('error', null, 'You cannot be your own manager'));
}
if (Gate::allows('editCurrentUser', $user)) {
if (Gate::allows('canEditSensitiveFieldsForCurrentUser', $user)) {
if ($request->filled('password')) {
$user->password = bcrypt($request->input('password'));