MyBB Community Forums

Full Version: an error in the code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
in setting we have


Show 'edited by' Messages
Once a post is edited by a regular user, do you want to show the edited by message?

Show 'edited by' Message for Administrators and Moderators
Do you want to show edited by messages for posts created by administrators and moderators?

in php


if($post['edituid'] != 0 && $post['edittime'] != 0 && $post['editusername'] != "" && (($mybb->settings['showeditedby'] != 0 && $usergroup['cancp'] == 0) || ($mybb->settings['showeditedbyadmin'] != 0 && $usergroup['cancp'] == 1)))

hmmm

whats about moderators in php code?
There should be a select box what groups are affected....
@supryk - will you open a PR or share your suggested code, thank you.

https://github.com/mybb/mybb/issues/4173