Spy All Users - how to turn off?

I want to turn off the "Spy All Users" functionality. So I went to Admin Panel => Builders => Navigation Menu => and from "Spy" column I removed "All Users" and remained only "Spy" and "Friends". For "Spy" I changed the URL from "modules/?r=spy/" to "modules/?r=spy/&mode=friends_events". Everything looks OK if someone just uses the navigation. However If someone knows the addresses: /modules/?r=spy/ /m/spy/ he can still spy all members. How to completely turn off the "Spy All Users" functionality?
Quote · 21 Nov 2010

Open the : modules\boonex\spy\classes\BxSpyModule.php

find these code lines:


// define page's mode
switch($this -> sSpyMode) {
case 'friends_events' :
//-- if member not logged function will draw login form --//;
if(!$this -> iMemberId ) {
return member_auth(0);
}

$this -> oSearch -> aCurrent['join'][] = array(
'type'      => 'INNER',
'table'     => $this -> _oDb -> sTablePrefix . 'friends_data',
'mainField' => 'id',
'onField'   => 'event_id',
'joinFields' => array(),
);

$this -> oSearch -> aCurrent['restriction']['friends']['value'] = $this -> iMemberId;
$this -> oSearch -> aCurrent['restriction']['no_my']['value']   = $this -> iMemberId;
$sPageUrl .= '&mode=' . $this -> sSpyMode;
break;

default :
}


and replace with :

//-- if member not logged function will draw login form --//;
if(!$this -> iMemberId ) {
return member_auth(0);
}

$this -> oSearch -> aCurrent['join'][] = array(
'type'      => 'INNER',
'table'     => $this -> _oDb -> sTablePrefix . 'friends_data',
'mainField' => 'id',
'onField'   => 'event_id',
'joinFields' => array(),
);

$this -> oSearch -> aCurrent['restriction']['friends']['value'] = $this -> iMemberId;
$this -> oSearch -> aCurrent['restriction']['no_my']['value']   = $this -> iMemberId;
$sPageUrl .= '&mode=friends_events';

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 22 Nov 2010

Thank you! It helped :)

Quote · 23 Nov 2010
 
 
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.