-
Notifications
You must be signed in to change notification settings - Fork 47
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
UX: clarify the need for authorized extension #346
Conversation
When checking `attach_csv` in the `Schedule a PM with Data Explorer results` automation script, `csv` has to be added to the list of authorized extensions in the site settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you instead add a custom validation that will show the message if you enable this site setting but CSV
isn't in the list of authorized extensions? 🤔
ah yes good idea, forgot I added this few months ago |
plugin.rb
Outdated
field :attach_csv, | ||
component: :boolean, | ||
validator: ->(attach_csv) do | ||
if attach_csv && !SiteSetting.authorized_extensions.split("|").include?("csv") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also need to handle the *
which allows for "all" extensions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh didn't know we do this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ZogStriP ok I added the * case thanks
When checking
attach_csv
in theSchedule a PM with Data Explorer results
automation script,
csv
has to be added to the list of authorized extensions in the site settings.