Simple Machines Community Forum

SMF Development => Bug Reports => Topic started by: GL700Wing on May 18, 2017, 07:20:01 AM

Title: Disabled BBC affects Admins
Post by: GL700Wing on May 18, 2017, 07:20:01 AM
I recently encountered an issue on an SMF 2.0.14 forum in which, when trying to view the details of a package installation error/manual edits required, the 'Operations' window was missing the 'codeheader' blocks (eg, Code: (Find) [Select], Code: (Replace) [Select]) - see attached.

I discovered the issue occurred because I had disabled the 'code' tag for posts and topics in Bulletin Board Code settings and I believe this is a bug because I don't think disabled BB codes should apply to Admins.

The fix I've implemented (which prevents disabled BB codes applying to Admins) is as follows:

In ./Sources/Subs.php
Find:
if (!empty($modSettings['disabledBBC']))

Replace with:
if (!empty($modSettings['disabledBBC']) && !allowedTo('admin_forum'))
Title: Re: Disabled BBC affects Admins
Post by: live627 on February 23, 2020, 04:20:56 AM
Tracked (internal issue #143)