Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 686 Bytes

2021-06-09-check-if-currentuser-is-loaded-when-checking-acls-on-dashboard.md

File metadata and controls

10 lines (10 loc) · 686 Bytes
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
---

Administration

  • Added a userPending flag to session.sotre.js to see whether an acl.can() check runs against a nullish currentUser, which leads to a faulty false return, or if the currentUser is loaded properly and cal.can() returns correct true or false values.
  • Changed SwDashboard createdComponent() function, to double check a falsy acl.can() return for real falsyness or false falsyness if currentUser is null in Shopware.State.get('session') via userPending flag.