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

mederly noreply at github.com
Wed Aug 14 11:46:43 CEST 2024


  Branch: refs/heads/support-4.4
  Home:   https://github.com/Evolveum/midpoint
  Commit: 9da2154ece8679b24b332bcd64d7e7a01f8fe44e
      https://github.com/Evolveum/midpoint/commit/9da2154ece8679b24b332bcd64d7e7a01f8fe44e
  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/AbstractSecurityTest.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/SecurityEnforcerImpl.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.



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