Site Admins cannot remove media from modules

As an example, the site admin can remove images from a Group they have created but unable to delete images from a Group created by another member. The same applies to other modules.  See fix below that needs to be applied to the core.

 

In inc/classes/BxDolFormMedia.php

Find :

            if (!$this->_oMain->isEntryAdmin($aDataEntry, $iIdProfile) && $aRow['owner'] != $iIdProfile)


Replace with :

            if (!$this->_oMain->isAdmin() && !$this->_oMain->isEntryAdmin($aDataEntry, $iIdProfile) && $aRow['owner'] != $iIdProfile)

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 16 Oct 2016

Thanks for the fix! Well appreciated.

Quote · 17 Oct 2016
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.