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

Fixed All prefixes show in search - even with lack of permissions

Discussion in 'Resolved Bug Reports' started by Razasharp, Feb 22, 2014.

  1. Razasharp

    Razasharp Well-Known Member

    Our moderator prefixes are showing for everyone to see on the search page. Is this a bug?

    We've had to rename them for now...
  2. Liam W

    Liam W Well-Known Member

    I would say it isn't, as users can view them when they've been applied to a thread, and people may want to search for them...

  3. Mike

    Mike XenForo Developer Staff Member

    Are the prefixes available in a forum they can view? If so, they're known and can be filtered on.

    If they're not applied to a forum they can view, that would be a bug -- but I know there is code to handle that case.
  4. Razasharp

    Razasharp Well-Known Member

    Hi Mike, they are in the private mod forum and set to be only usable by the admin and mod groups.
  5. Mike

    Mike XenForo Developer Staff Member

    Are they in their own unique group? I believe that case was handled already.

    The workaround is to change library/XenForo/Search/DataHandler/Post.php:
    foreach ($viewParams['prefixes'] AS $key => &$prefixes)
    Add the character in red.
    Razasharp likes this.

Share This Page