Advertisement:

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002785SMF 2.0public2008-12-08 14:052008-12-09 17:07
ReporterTE 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Summary0002785: permissions: "Moderate forum members" - allows also administering censored words
Descriptiontested with latest SVN, when "Moderate forum members" permission is enabled for a membergroup the user can also administer the censored words.
not sure if this is a feature but censored words and member administration are completely different jobs.

In Admin.php

'postsettings' => array(
                    'label' => $txt['manageposts'],
                    'file' => 'ManagePosts.php',
                    'function' => 'ManagePostSettings',
                    'permission' => array('admin_forum', 'moderate_forum'),
                    'icon' => 'posts.gif',
                    'subsections' => array(
                        'posts' => array($txt['manageposts_settings'], 'admin_forum'),
                        'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
                        'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
                        'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
                    ),

should be replaced with:

'postsettings' => array(
                    'label' => $txt['manageposts'],
                    'file' => 'ManagePosts.php',
                    'function' => 'ManagePostSettings',
                    'permission' => 'admin_forum',
                    'icon' => 'posts.gif',
                    'subsections' => array(
                        'posts' => array($txt['manageposts_settings'], 'admin_forum'),
                        'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
                        'censor' => array($txt['admin_censored_words'], 'admin_forum'),
                        'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
                    ),
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0006299)
Compuart (SMF Friend)
2008-12-09 17:07

The moderate_forum is one of those combined permissions that is closely related to everything that a moderator should be able to do. If the choice would be between admin_forum, which is used to administrate the forum (in YaBB SE the is_admin check would be used) and moderate_forum, which is the ultimate moderator permission (in YaBB SE this used to be the stuff for the global moderator group and the local moderator group), I would still choose 'manage censored words' to be something regulated by moderators and not by administrators.

So, in short, this is a by-design thing. If it would no longer fall under moderate_forum, in my opinion it should be a separate permission, but that would not be feasible for 2.0.
MantisBT 1.2.8 (Modified)[^] Copyright © 2000 - 2010 Mantis Group