A platform for community discussion. Free, open, simple.
DEV: Remove TagGuardian#can_create_tag? fallback (#25535)
Ted Johansson2da7c74e60b5
diff --git a/lib/guardian/tag_guardian.rb b/lib/guardian/tag_guardian.rbindex e5ec0a93967..025a7e0c013 100644--- a/lib/guardian/tag_guardian.rb+++ b/lib/guardian/tag_guardian.rb@@ -7,11 +7,7 @@ module TagGuardianenddef 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)enddef can_tag_topics?diff --git a/plugins/chat/spec/lib/chat/channel_archive_service_spec.rb b/plugins/chat/spec/lib/chat/channel_archive_service_spec.rbindex 26ad7576e21..96451f3480c 100644--- a/plugins/chat/spec/lib/chat/channel_archive_service_spec.rb+++ b/plugins/chat/spec/lib/chat/channel_archive_service_spec.rb@@ -7,7 +7,7 @@ describe Chat::ChannelArchiveService doendfab!(:channel) { Fabricate(:category_channel) }- fab!(:user) { Fabricate(:user, admin: true, refresh_auto_groups: true) }+ fab!(:user) { Fabricate(:admin, refresh_auto_groups: true) }fab!(:category)let(:topic_params) { { topic_title: "This will be a new topic", category_id: category.id } }@@ -117,7 +117,7 @@ describe Chat::ChannelArchiveService doreaction_message = Chat::Message.lastChat::MessageReaction.create!(chat_message: reaction_message,- user: Fabricate(:user),+ user: Fabricate(:user, refresh_auto_groups: true),emoji: "+1",)stub_const(Chat::ChannelArchiveService, "ARCHIVED_MESSAGES_PER_POST", 5) do