1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Function if $user is moderator of $forum?

Discussion in 'XenForo Development Discussions' started by Jaxel, Sep 3, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    Is there a function to determine if a $user is a moderator of a $forum?
     
  2. xfrocks

    xfrocks Well-Known Member

    I don't think there is one method for that. I ended up using XenForo_Model_Forum::canStickUnstickThreadInForum :D Moderator should be able to stick threads, right? At least I hope so
     
  3. James

    James Well-Known Member

    Have you tried XenForo_Model_Moderator->getGeneralModeratorByUserId? I'm not sure what it returns.
     

Share This Page