jmix-framework / jmix

Jmix framework
https://www.jmix.io
Apache License 2.0
696 stars 125 forks source link

User with "UI: edit filters" role cannot save filter #3580

Closed knstvk closed 2 weeks ago

knstvk commented 3 months ago

Environment

Jmix version: 2.3.1

Bug Description

User with "UI: edit filters" role cannot create a filter but cannot save it: AccessDenied error is shown.

Denied access to [view: inputDialog] for user [test] by io.jmix.securityflowui.constraint.UiShowViewConstraint

See also forum topic.

Expected Behavior

The permission to inputDialog should be in "UI: edit filters" or in "UI: minimal access" role.

knstvk commented 2 weeks ago

New projects created with 2.4.1 template don't have this problem anymore. For projects migrated from previous versions, add extends UiMinimalPolicies to the UiMinimalRole interface.