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

Fixed Admin Permissions bug

Discussion in 'Resolved Bug Reports' started by Robbo, Apr 8, 2013.

  1. Robbo

    Robbo Well-Known Member

    I don't know how this bug came about after installing one of my add-ons, probably an issue on my end mainly. However adding this little fix would be for the best anyway for conflicting add-ons (ones that have the same admin permission ID).

    In XenForo_Model_Admin line 287, wrapping the $newPermissions with array_unique() so if there is a duplicate it doesn't throw a SQL duplicate key error.
  2. Mike

    Mike XenForo Developer Staff Member

    Fair enough.

Share This Page