Problem/Motivation

Introducing WorkflowUser as a decorator for User facilitates some coding.

  • public function isOwner(EntityInterface $entity): bool;
  • public function addOwnerRole(EntityInterface $entity): static;
  • public function isSuperUser(WorkflowTypeAttributeInterface $entity): bool;
  • public function addSuperUserRole(WorkflowTypeAttributeInterface $entity): static;

It replaces static functions in WorkflowRole Object:

  • public static function addOwnerRole(UserInterface $user, ?EntityInterface $entity = NULL): void;
  • public static function isOwner(AccountInterface $account, ?EntityInterface $entity = NULL): bool;

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

johnv created an issue. See original summary.

  • johnv committed b9ea8a5a on 2.1.x
    #3554208: Introduce WorkflowUser
    
johnv’s picture

Issue summary: View changes
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • johnv committed 18045397 on 2.1.x
    #3554208: Introduce WorkflowUser
    

  • johnv committed 5367d0ca on 2.1.x
    #3554208: Introduce WorkflowUser - phpcs
    

  • johnv committed 2d980057 on 2.1.x
    #3554208: Introduce WorkflowUser - phpunit
    

  • johnv committed 1a243b65 on 2.1.x
    #3554208: Introduce WorkflowUser - phpcs
    

  • johnv committed 482b7603 on 2.1.x
    #3554208 by maxmendez: Introduce WorkflowUser - fix QueryException: No...
johnv’s picture

Version: 2.1.7 » 2.1.8

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

johnv’s picture

Status: Closed (fixed) » Active

  • johnv committed d63a4431 on 2.1.x
    [#3554208] by rickcrowther@gmail.com: Introduce WorkflowUser - add...
johnv’s picture

Status: Active » Fixed

A hook_update() is introduced for people having updated to 2.1.8, before the update from #9.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.