Current time: 06-19-2013, 07:13 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Displaying search results as posts for moderators [R] [C-StefanT]
04-22-2009, 07:15 AM
Post: #1
[F] Displaying search results as posts for moderators [R] [C-StefanT]
MyBB 1.4.5

When moderator searches for users posts he will not see any posts from forums he do not moderate. It's because SELECT statement in search.php in block "Check the thread records as well. If we don't have permissions, remove them from the listing." which removes posts from the list.

For normal users this query removes not-visible posts, but for moderator it removes (not-visible posts OR posts in not moderated forums).

I attach a patch.


Attached File(s)
.diff  mybb-1.4.5-search-mods-only_moderated_forums.diff (Size: 478 bytes / Downloads: 265)

www.kozik.net.pl
- So... Maybe you shouldn't have hacked it.
- And why don't you try not breathing. Hurts, dunnit. (userfriendly.org)
Visit this user's website Find all posts by this user
04-22-2009, 06:32 PM
Post: #2
RE: Displaying search results as posts for moderators
Thanks for the solution. Smile
Visit this user's website Find all posts by this user
04-22-2009, 08:49 PM
Post: #3
RE: Displaying search results as posts for moderators
Patch seems fine to me. A MyBB developer can apply the patch and commit it.
Visit this user's website Find all posts by this user
05-13-2009, 03:39 PM
Post: #4
[F] Displaying search results as posts for moderators [R]
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication