Zeile 12 | Zeile 12 |
---|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'ratethread.php');
|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'ratethread.php');
|
$templatelist = '';
| $templatelist = 'forumdisplay_password_wrongpass,forumdisplay_password';
|
require_once "./global.php";
// Verify incoming POST request
| require_once "./global.php";
// Verify incoming POST request
|
Zeile 29 | Zeile 29 |
---|
}
$forumpermissions = forum_permissions($thread['fid']);
|
}
$forumpermissions = forum_permissions($thread['fid']);
|
if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0)
| if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
|
{ error_no_permission(); }
| { error_no_permission(); }
|