--- dbt/showthread_complete.php 2017-03-05 09:56:43.000000000 -0700
+++ thj/showthread_complete.php 2017-03-05 10:00:58.000000000 -0700
@@ -1,19 +1,26 @@
<?php
-if ($vbulletin->userinfo['userid'] AND ($vbulletin->userinfo['permissions']['dbtech_bookmarkpermissions'] & $vbulletin->bf_ugp_dbtech_bookmarkpermissions['canbookmarkthread']))
+if ($vbulletin->userinfo['userid'] AND
+ (
+ ($vbulletin->userinfo['permissions']['dbtech_bookmarkpermissions'] & $vbulletin->bf_ugp_dbtech_bookmarkpermissions['canbookmarkthread']) OR
+ ($vbulletin->userinfo['permissions']['dbtech_bookmarkpermissions'] & $vbulletin->bf_ugp_dbtech_bookmarkpermissions['canbookmarkpost'])
+ )
+ )
{
+ if ($vbulletin->userinfo['permissions']['dbtech_bookmarkpermissions'] & $vbulletin->bf_ugp_dbtech_bookmarkpermissions['canbookmarkthread'])
+ {
$templater = vB_Template::create('dbtech_bookmark_thread');
$templater->register('threadid', $thread['threadid']);
$templater->register('hasBookmarked', (int)is_array($db->query_first_slave("
SELECT userid
FROM " . TABLE_PREFIX . "dbtech_bookmark_entry
WHERE contenttype = 'thread'
AND contentid = '" . intval($thread['threadid']) . "'
AND userid = '" . intval($vbulletin->userinfo['userid']) . "'
")));
$template_hook['showthread_above_posts'] .= $templater->render();
-
+ }
// Begin list of JS phrases
$jsphrases = array(
'dbtech_bookmark_bookmark_thread' => $vbphrase['dbtech_bookmark_bookmark_thread'],
'dbtech_bookmark_unbookmark_thread' => $vbphrase['dbtech_bookmark_unbookmark_thread'],