View Issue Details

IDProjectCategoryView StatusLast Update
0003520OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2012-12-07 14:23
Reporterrimvydas_paskevicius Assigned To 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.5.6 revision 40808 
Fixed in Version4.6.0_beta3 
Summary0003520: Its possible to write ratings and invitations to friends even if in backed this functionality is switched off
DescriptionIts possible to write ratings and invitations to friends even if in backed this functionality is switched off. This valid also for upcoming 4.6 basic theme (azure already fixed)
TagsRatings, Reviews
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

rimvydas_paskevicius

2012-01-26 15:54

reporter   ~0005658

For fixing invitation you should add following method to view/invite.php file

    public function render()
    {
        $oConfig = $this->getConfig();

        if ( !$oConfig->getConfigParam( "blInvitationsEnabled" ) ) {
            oxUtils::getInstance()->redirect( $oConfig->getShopHomeURL() );
            return;
        }

        parent::render();

        return $this->_sThisTemplate;
    }

rimvydas_paskevicius

2012-01-27 16:51

reporter   ~0005660

Added additional checking if inivitations and reviews are active. If not - will be redirected to home page.