Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Update rubocop-discourse to latest version #60

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

Flink
Copy link
Contributor

@Flink Flink commented May 17, 2024

No description provided.

@Flink Flink self-assigned this May 17, 2024
extend ActiveSupport::Concern

def can_create_post_on_topic?(topic)
return super if !SiteSetting.restricted_replies_enabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are enabled checks required in class extensions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When adding methods to existing classes, we should check for the enabled setting, yes. It’s not done automatically when extending “manually” a class, so we should probably keep the existing checks when they exist. (Maybe at some point we could do something to automatically add the checks)

@Flink Flink merged commit 4039804 into main May 17, 2024
4 checks passed
@Flink Flink deleted the loic-fix-linting branch May 17, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants