• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Moderation permission bug?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've not tested it so maybe I'm wrong but...
Similar to download attachment bug I've found out that when function net.jforum.view.forum.ModerationHelper.doModeration() checks for permission it only checks if user has permission_moderation which is not per forum.
So users with moderation permission in any forum can lock/unlock, remove and move threads if he can guess the correct topicID and fake an html form with those params, without being a moderator on that forum.

One solution could be to check if net.jforum.entities.UserSession.isModerator(forumID) at the beginning of doModeration() function.
[originally posted on jforum.net by ramons]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it's not really a bug, but more of a limitation of the original implementation.

You can request a "Enhancement" in Jira for this, as it would be good, and in some future release we may include it.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic