askvortsov I see a few solutions:
- Just add an
->isAdmin() check in there to skip the count check logic. Very easy change, only affects admins. Not an extensible solution, but still useful.
- Add dedicated permission "skip tag restrictions". If we scope it with
discussion. prefix, it could even be customized per-tag.
Allowing to scope it per-tag could allow advanced customization but I fear it would also lead to even more issues with the way tag permissions work. If you applied any unrestricted tag, it would lift all restrictions.
I'm not sure how this same fix could be used to allow no tags for some discussions askvortsov . For that specific use case I think it would be best for the Tags extension to expose an event or something so that extensions can conditionally enable or disable the check.
If someone could maybe create a GitHub issue to summarize this discussion so we don't forget about it, that would be great.