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

SECURITY: Bring list of presets to backend #14

Merged
merged 3 commits into from
May 29, 2024

Conversation

Grubba27
Copy link
Contributor

No description provided.

plugin.rb Outdated

buttons.select do |button|
allowed_groups = button["access"].split(/(?:,|\s)\s*/)
allowed_groups.length == 0 || allowed_groups.any? do |group|
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
allowed_groups.length == 0 || allowed_groups.any? do |group|
allowed_groups.empty? || allowed_groups.any? do |group|

Copy link

@markvanlan markvanlan left a comment

Choose a reason for hiding this comment

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

Approving -- do you need to show the normal new topic button when the current_user has no options though?

@Grubba27 Grubba27 merged commit ecbe14c into main May 29, 2024
4 checks passed
@Grubba27 Grubba27 deleted the security/bring-list-to-backend branch May 29, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants