Skip to content

Commit d1a14b1

Browse files
authored
[6.0] debug plugin replace deprecated getUser (#45793)
1 parent 48b0cff commit d1a14b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/system/debug/src/Storage/FileStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private function isSecureToReturnData($data): bool
165165
return false;
166166
}
167167

168-
$currentUser = Factory::getUser();
168+
$currentUser = Factory::getApplication()->getIdentity();
169169
$currentUserId = $currentUser->id;
170170
$currentUserSuperAdmin = $currentUser->authorise('core.admin');
171171

0 commit comments

Comments
 (0)