Resource icon

Unmaintained Can Warn Staff 1.2.1

No permission to download
  • Remove extraneous query that would occur on replying to a thread
  • Allows adding/deleting reply bans for staff to be managed by the Warning permissions for mods/admins.
Consistently reduce performance impact for; threads, profile posts.

Should reduce down to 0 or 1 extra queries.
A couple of minor tweaks to resolve an addon conflict @Biker was experiencing.
Now uses permission combination id's rather than user ids for determining if the database requires querying for permissions.

If all the users on a page are in the same set of groups, then it will only issue 1 query. If the viewing user is in the same set of groups, then no extra queries will be issued.

Guest users or posts with no owner, do not trigger any extra queries as they are hardcoded to never be able to issue warnings.
Use custom SQL to fetch the user's permission combination, rather than fetching nearly everything about the user.

Please disable the addon before upgrading.
Event listeners have been changed and will cause an error where XF has a mismatch between the old code and the new addon XML.
Improved handling of posts by guest/deleted users causing errors which results in the report becoming unviewable.
Bugfix for merged/deleted users causing errors which results in the report becoming unviewable.
3 new permissions, to allow selective disabling of warnings for a group:
  • Prevent posts being warned.
  • Prevent being directly warned.
  • Prevent profile posts being warned.
Back
Top Bottom