Comment to 'Public content by author'
  • If you're OK tomodify this code then you may add the following line:

    $this->aCurrent['restriction'] ['public'] => array('value' => BX_DOL_PG_ALL, 'field' => 'allow_view_to', 'operator' => '=');

    after this one:

    if(!empty($aParams['per_page'])) $this->aCurrent['paginate']['perPage']

    • If you're OK tomodify this code then you may add the following line:

      $this->aCurrent['restriction'] ['public'] => array('value' => BX_DOL_PG_ALL, 'field' => 'allow_view_to', 'operator' => '=');

      after this one:

      if(!empty($aParams['per_page'])) $this->aCurrent['paginate']['perPage'] 

      that worked great, but I had to put it in the else statement to allow owners to view their non-public posts.