public function authorizeSubscribePackage(AnCommandContext $context)
    {
        $viewer = $context->viewer;

        return !$viewer->hasSubscription(false) || $this->authorize('upgradepackage');
    }
public function authorizeSubscribePackage(AnCommandContext $context)
    {
        $viewer = $context->viewer;

        return !$viewer->hasSubscription(false) || $this->authorize('upgradepackage');
    }
public function authorizeSubscribePackage ( AnCommandContext $ context ) { $ viewer = $ context -> viewer ; return ! $ viewer -> hasSubscription ( false ) || $ this -> authorize ( 'upgradepackage' ) ; }
Authorizers subscripting to a package.

@param AnCommandContext $context Context parameter

@return bool
Authorizers subscripting to a package .