[midPoint-git] [Evolveum/midpoint] 021e26: Fix showing Save button for #modify exec autz

mederly noreply at github.com
Wed Aug 14 11:26:12 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 021e2611bba156d3ada470a182036ec02fc9793b
      https://github.com/Evolveum/midpoint/commit/021e2611bba156d3ada470a182036ec02fc9793b
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/admin/component/AssignmentHolderOperationalButtonsPanel.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/ModelAuthorizationAction.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/AbstractInitializedSecurityTest.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/security/TestSecurityBasic.java
    M model/model-intest/src/test/resources/security/role-persona-management.xml
    M repo/security-enforcer-impl/src/main/java/com/evolveum/midpoint/security/enforcer/impl/EnforcerDecisionOperation.java
    M repo/security-enforcer-impl/src/main/java/com/evolveum/midpoint/security/enforcer/impl/ItemDecisionOperation.java

  Log Message:
  -----------
  Fix showing Save button for #modify exec autz

The Save button for object edit operations is shown if there's
either any modifiable item, or any #modify authorization for
the execution phase. The latter is used if there's #assign or
similar autz, because it is not visible via modifiable items.

This commit fixes two things:

- The security enforcer did not expect empty deltas when
being asked for delta-related authorizations. Now it allows
such deltas, provided there is at least one relevant
authorization.

- The GUI used null deltas when asking. Now it uses empty
modification deltas.

Related to MID-9898.

(Unrelated: Fixing item-level autz logging.)



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list