mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
DEV: Remove TagGuardian#can_create_tag? fallback (#25535)
We've changed access settings to be group membership based rather than based on the TL value directly. We kept both conditions here while we updated any plugins and themes. It should now be safe to remove.
This commit is contained in:
@ -7,11 +7,7 @@ module TagGuardian
|
||||
end
|
||||
|
||||
def can_create_tag?
|
||||
SiteSetting.tagging_enabled &&
|
||||
(
|
||||
@user.has_trust_level_or_staff?(SiteSetting.min_trust_to_create_tag) ||
|
||||
@user.in_any_groups?(SiteSetting.create_tag_allowed_groups_map)
|
||||
)
|
||||
SiteSetting.tagging_enabled && @user.in_any_groups?(SiteSetting.create_tag_allowed_groups_map)
|
||||
end
|
||||
|
||||
def can_tag_topics?
|
||||
|
Reference in New Issue
Block a user