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

Document upload setting #2585

Merged
merged 2 commits into from
Apr 10, 2018
Merged

Document upload setting #2585

merged 2 commits into from
Apr 10, 2018

Conversation

MariaCheca
Copy link
Contributor

This is a backport PR.

References

Related issue #2579
Related PR AyuntamientoMadrid#1410

Notes

After deploying this it will be neccessary to create the setting:
Setting['feature.allow_attached_documents'] = true either by manually typing it in the rails console on the server... or by running the rake task:
bin/rake settings:create_attached_documents_setting RAILS_ENV=production

⚠️ If this setting is not created, the Documents feature will be disabled by default!

Add setting to both seed and dev_seeds as well as a rake task to make it
easier to set.
@MariaCheca MariaCheca force-pushed the document_upload_setting branch from c52f5c7 to 8b88972 Compare April 10, 2018 11:06
When Setting allow_attached_documents is disabled (false value) the user
should not be able to upload documents neither see the documents lists
@MariaCheca MariaCheca force-pushed the document_upload_setting branch from 8b88972 to 21ead40 Compare April 10, 2018 11:10
Copy link
Collaborator

@bertocq bertocq left a comment

Choose a reason for hiding this comment

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

👏

@bertocq bertocq merged commit 4940623 into master Apr 10, 2018
@bertocq bertocq deleted the document_upload_setting branch April 10, 2018 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants