pimcore / generic-data-index-bundle

Other
3 stars 1 forks source link

Fix hasWorkflowWithPermissions check in combination with user authentication #169

Closed markus-moser closed 2 weeks ago

markus-moser commented 2 weeks ago

"hasWorkflowWithPermissions" is not set correctly all the time.

e.g. when workflow has expression supports strategy and uses is_fully_authenticated() in expression (e.g. the asset workflow in the demo).

Then, when saving the asset in pimcore backend (with existing admin session), hasWorkflowWithPermissions is set correctly into index.

When saving asset via API or just updating index via commands, hasWorkflowWithPermissions is not set correctly.

Fixes https://github.com/pimcore/portal-engine/issues/289

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud