From d308e4b641e0f37d7bd96d1fb5859ec147aed672 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sun, 9 Feb 2014 18:06:19 -0500 Subject: [PATCH] Mods should not be able to register users --- Sources/Admin.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Admin.php b/Sources/Admin.php index 2f07964..610013c 100644 --- a/Sources/Admin.php +++ b/Sources/Admin.php @@ -332,9 +332,13 @@ function AdminMain() 'file' => 'ManageRegistration.php', 'function' => 'RegCenter', 'icon' => 'regcenter.gif', - 'permission' => array('admin_forum', 'moderate_forum'), + // xxx mods shouldn't be able to register users + //orig: 'permission' => array('admin_forum', 'moderate_forum'), + 'permission' => array('admin_forum'), 'subsections' => array( - 'register' => array($txt['admin_browse_register_new'], 'moderate_forum'), + // xxx mods shouldn't be able to register users + //orig: 'register' => array($txt['admin_browse_register_new'], 'moderate_forum'), + 'register' => array($txt['admin_browse_register_new'], 'admin_forum'), 'agreement' => array($txt['registration_agreement'], 'admin_forum'), 'reservednames' => array($txt['admin_reserved_set'], 'admin_forum'), 'settings' => array($txt['settings'], 'admin_forum'),