You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the moving of elements requires the settings permission, which also shows the settings tab, I allowed settings in the workspace permissions, but forbid it on every workflow place. This hides the settings tab, but allows to move the element - in this case a document (page).
But in doing so, I get a warning in the backoffice when moving an item (see screenshot).
This is the relevant code and it can be found here:
Description
As the moving of elements requires the settings permission, which also shows the settings tab, I allowed settings in the workspace permissions, but forbid it on every workflow place. This hides the settings tab, but allows to move the element - in this case a document (page).
But in doing so, I get a warning in the backoffice when moving an item (see screenshot).
This is the relevant code and it can be found here:
$data['userPermissions'] = array_merge( (array)$data['userPermissions'], $placeConfig->getUserPermissions($workflow, $element) );
A possible solution would be to preset the array index if it is not set beforehand:
if (!isset($data['userPermissions'])) { $data['userPermissions'] = []; }
How to reproduce
The text was updated successfully, but these errors were encountered: