From 8763cc93273e9f9eafcf54b92b4b98b0602375ac Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 16 Mar 2015 16:48:10 -0700 Subject: [PATCH] Let global volunteers do ?/reassign so it's not just me/lowcard --- inc/8chan-mod-pages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index c79b9bb1..b8a28fe8 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -99,7 +99,7 @@ $config['mod']['ban_appeals'] = BOARDVOLUNTEER; $config['mod']['view_ban_appeals'] = BOARDVOLUNTEER; $config['mod']['view_ban'] = BOARDVOLUNTEER; - $config['mod']['reassign_board'] = ADMIN; + $config['mod']['reassign_board'] = GLOBALVOLUNTEER; $config['mod']['move'] = GLOBALVOLUNTEER; $config['mod']['shadow_capcode'] = 'Global Volunteer'; @@ -150,7 +150,7 @@ $sfw = $query->fetchColumn(); - mod_page(_('Edit tags'), 'mod/tags.html', array('board'=>$board,'token'=>make_secure_link_token('reassign/'.$board['uri']), 'tags'=>$tags, 'sfw'=>$sfw)); + mod_page(_('Edit tags'), 'mod/tags.html', array('board'=>$board,'token'=>make_secure_link_token('tags/'.$board['uri']), 'tags'=>$tags, 'sfw'=>$sfw)); }; $config['mod']['custom_pages']['/reassign/(\%b)'] = function($b) { @@ -180,6 +180,8 @@ $query->execute(); $body = "Thanks for your interest in this board. Kindly find the username and password below. You can login at https://8ch.net/mod.php.
Username: {$mods[0]['username']}
Password: {$password}
Thanks for using 8chan!"; + + modLog("Reassigned board /$b/"); mod_page(_('Edit reassign'), 'blank.html', array('board'=>$board,'token'=>make_secure_link_token('reassign/'.$board['uri']),'body'=>$body)); };