Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Check if currentUser is loaded when checking acls on dashboard
issue: NEXT-15389
author: Raoul Kramer
author_email: [email protected]
author_github: @djpogo
---
- Added a
userPending
flag tosession.sotre.js
to see whether anacl.can()
check runs against anull
ishcurrentUser
, which leads to a faultyfalse
return, or if thecurrentUser
is loaded properly andcal.can()
returns correcttrue
orfalse
values. - Changed
SwDashboard
createdComponent()
function, to double check a falsyacl.can()
return for real falsyness or false falsyness ifcurrentUser
is null inShopware.State.get('session')
viauserPending
flag.