/**
  * Is allowed view page
  * 
  * @param array $privacyOptions
  * @param boolean $trustedData
  * @return boolean
  */
 public function isAllowedViewPage(array $privacyOptions = [], $trustedData = false)
 {
     // check a permission
     if (UserIdentityService::isDefaultUser() || !AclService::checkPermission('memberships_view_buy_page', false)) {
         return false;
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * Is allowed to view page
  *
  * @param array $privacyOptions
  * @param boolean $trustedData
  * @return boolean
  */
 public function isAllowedViewPage(array $privacyOptions = [], $trustedData = false)
 {
     return !UserIdentityService::isGuest() && !UserIdentityService::isDefaultUser();
 }