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
@@ -275,7 +275,7 @@ class UsersController extends Controller
// check for permissions related fields and pull them out if the current user cannot edit them
if (Gate::allows('editCurrentUser', $user)) {
if (Gate::allows('canEditSensitiveFieldsForCurrentUser', $user)) {
\Log::debug('Current user can edit these fields');
$user->username = trim($request->input('username'));