BxDolTwigModule::_isMembershipEnabledFor PHP Method

_isMembershipEnabledFor() public method

public _isMembershipEnabledFor ( $sMembershipActionConstant )
    function _isMembershipEnabledFor($sMembershipActionConstant)
    {
        defineMembershipActions(array('photos add', 'sounds add', 'videos add', 'files add'));
        if (!defined($sMembershipActionConstant)) {
            return false;
        }
        $aCheck = checkAction(getLoggedId(), constant($sMembershipActionConstant));
        return $aCheck[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
    }