src/wcmf/application/controller/UserController.php
public function afterCommit(TransactionEvent $event) {
    if ($event->getPhase() == TransactionEvent::AFTER_COMMIT) {
      // remove temporary permissions
      $permissionManager = $this->getPermissionManager();
      foreach ($this->tempPermissions as $permission) {
        $permissionManager->removeTempPermission($permission);
      }
    }
  }
public function afterCommit(TransactionEvent $event) {
    if ($event->getPhase() == TransactionEvent::AFTER_COMMIT) {
      // remove temporary permissions
      $permissionManager = $this->getPermissionManager();
      foreach ($this->tempPermissions as $permission) {
        $permissionManager->removeTempPermission($permission);
      }
    }
  }
public function afterCommit ( TransactionEvent $ event ) { if ( $ event -> getPhase ( ) == TransactionEvent :: AFTER_COMMIT ) { // remove temporary permissions $ permissionManager = $ this -> getPermissionManager ( ) ; foreach ( $ this -> tempPermissions as $ permission ) { $ permissionManager -> removeTempPermission ( $ permission ) ; } } }
Remove temporary permissions after commit
@param $event
Remove temporary permissions after commit