Commit graph

2457 commits

Author SHA1 Message Date
Patrick Gansterer
0785eb2f22 Do not set :sender and :errors_to when sending mails
:sender matches :from in all relevant cases, while :errors_to is an
invalid (and very very outdated) option.
2017-09-30 12:14:15 +02:00
Patrick Gansterer
43c1833cd7 Set ActionMailer configuration in FoodsoftConfig 2017-09-30 12:14:15 +02:00
Patrick Gansterer
e6e8c845cd Cleanup notify_users_of_weekly_task 2017-09-30 12:11:44 +02:00
Patrick Gansterer
7bb5e74e0c Fix mailer/not_enough_users_assigned view 2017-09-30 12:07:47 +02:00
Patrick Gansterer
ba052efe5e Set the path of the _foodsoft_session cookie to the slug
This allows the usage of different foodcoops at the same time.
2017-09-29 00:47:00 +02:00
Patrick Gansterer
ac00942f34 Fix list of invoices when an invoice has an invalid created_by user 2017-09-26 13:13:20 +02:00
Patrick Gansterer
43294a40f5 Fix page version view for the case when a user has been deleted 2017-09-26 13:11:58 +02:00
Patrick Gansterer
b3a6884cf1 Remove FoodsoftConfig[:name] from received mails 2017-09-26 01:08:52 +02:00
Patrick Gansterer
52dc7b1387 Raise a RoutingError for unknown foodcoop in multi_coop_installs
This gives the correct error code for request to files in the root
folder (e.g. /apple-touch-icon.png), which do not exist.
2017-09-25 10:16:03 +02:00
Patrick Gansterer
0edc780ec7 Add Discourse plugin 2017-09-22 13:58:00 +02:00
Patrick Gansterer
f8662c9184 Redirect to root_url of default_scope when no slug is given 2017-08-29 23:40:48 +02:00
Patrick Gansterer
6185e18cc5 Notify users also about tasks which are not on sundays (PR #494)
notify_users_of_weekly_task notifies workgroups about tasks with and due
date of 7 days in the future. Call it every day to notify users of all tasks.
2017-08-21 16:01:36 +02:00
Patrick Gansterer
329ac66cf1 Show only undeleted users in user select input fields (PR #486) 2017-08-21 11:27:02 +02:00
Patrick Gansterer
8798b886db Fix mailing of order_result (PR #493) 2017-08-21 11:17:54 +02:00
Patrick Gansterer
c6297f2864 Sort workgroups of tasks by name 2017-08-20 01:08:47 +02:00
Patrick Gansterer
6a110ca429 Show the Help link only when a help_url is set 2017-08-20 01:07:48 +02:00
Patrick Gansterer
2b1056687a Install thin gem always to have an production server for the Docker setup 2017-08-08 23:45:29 +02:00
Patrick Gansterer
251681bb66 Add option to configure SMTP server via environment variables in production.rb 2017-08-08 23:27:28 +02:00
Patrick Gansterer
d6325de35c Add support for RAILS_SERVE_STATIC_FILES to production.rb an use it with Docker 2017-08-08 23:27:28 +02:00
Patrick Gansterer
42b789d381 Create config/initializers/secret_token.rb in Dockerfile
Set the secret_token to ENV['SECRET_KEY_BASE'] in that file.
2017-08-08 23:27:28 +02:00
Patrick Gansterer
2c180cc9e8 Set BUNDLE_APP_CONFIG and DATABASE_URL in crontab when defined 2017-08-08 23:27:27 +02:00
Patrick Gansterer
3010dd2d90 Redirect log/production.log to /dev/stdout in Docker setup 2017-08-08 23:27:27 +02:00
Patrick Gansterer
5bc9becf9a Use a temporary mysql-server for assets precompilation during Docker build 2017-08-08 23:27:27 +02:00
wvengen
af1243ebea Fix database issue on Travis CI
Apparently the travis user is restricted now, and something changed with
character sets. https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html
2017-08-04 17:21:57 +02:00
Patrick Gansterer
c3a49e4260 Remove unused libraries and files from Docker image 2017-08-03 00:16:51 +02:00
Patrick Gansterer
5903b4d601 Use SOURCE_COMMIT environment variable for REVISION file during Docker build 2017-07-31 23:39:13 +02:00
wvengen
6fddef354d Bundle update nokogiri and mail (CVE-2017-5029, CVE-2015-9097) 2017-07-31 23:32:19 +02:00
Patrick Gansterer
64bda5da27 Create REVISION file for Docker container 2017-07-31 23:08:55 +02:00
Patrick Gansterer
fa32fc9229 Dockerfile for production 2017-07-31 23:08:55 +02:00
wvengen
03256d28dd Merge pull request #479 from foodcoop1040/default_scope
Fall back to default_scope if an invalid foodcoop is provided
2017-07-12 20:47:24 +02:00
Patrick Gansterer
c312bd5ebd Fall back to default_scope if an invalid foodcoop is provided
Before this change foodsoft redirect to the last active foodcoop, when
an invalid foodcoop is provided. After this change the default_scope
will be used all the time to avoid data disclosure.
2017-07-08 00:09:42 +02:00
wvengen
e366605dbe Merge pull request #478 from foodcoop1040/god
Fix order by groups document after 020b75c
2017-06-28 21:12:48 +02:00
Patrick Gansterer
4713539a09 Fix order by groups document after 020b75c
Use a OUTER JOIN instead of a INNER JOIN to include also the stock order
which does not have an entry in the groups table.
2017-06-28 13:53:38 +02:00
wvengen
8f8b5b93a4 Continue development after release 2017-04-14 12:37:04 +02:00
wvengen
b23ade7fc2 Bumped new version: 4.5.2 2017-04-14 12:36:33 +02:00
wvengen
e73bf9c7cb Localeapp roundtrip 2017-04-14 12:34:02 +02:00
Robin Schneider
897d31e340 Install all dependencies in an authenticated way (https)
git:// is unauthenticated!!!
2017-04-10 09:26:33 +02:00
wvengen
4f30248a49 Allow to run without Redis in development 2017-04-01 19:11:52 +02:00
wvengen
c8999333a6 Localeapp roundtrip 2017-04-01 16:51:05 +02:00
wvengen
240decb4f3 Relax deface version (fixes USN-3235-1) 2017-04-01 16:09:27 +02:00
wvengen
b857b10814 Fix specs after update (switching to webkit) 2017-04-01 15:18:56 +02:00
wvengen
ddf7402a3b Bundle update (includes CVE-2017-5946) 2017-04-01 15:18:56 +02:00
Tom Carchrae
0779ccd193 Add missing confirm translation (fixes #467, PR #469) 2017-03-21 16:22:36 +01:00
Patrick Gansterer
8ed87730a8 Fix listing of shared suppliers 2017-03-04 13:17:46 +01:00
Patrick Gansterer
04a833a5f5 Allow ERB syntax in the app_config.yml
This change allows us to refer to envrionment variables in the yml file.
This is helpful if passwords are passed as environment variables in
Docker installations to avoid plain passwords in configuration files.
2017-03-04 13:17:22 +01:00
wvengen
e5cec637fc Merge pull request #463 from foodcoop1040/user_display
Show User.display instead of User.name when showing messages
2017-02-16 09:04:19 +01:00
Patrick Gansterer
1f979c3f66 Show User.display instead of User.name when showing messages 2017-02-16 08:33:27 +01:00
wvengen
c32593d682 Merge pull request #462 from foodcoop1040/message_undeleted
Send messages only to users which have not been deleted
2017-02-16 00:24:57 +01:00
Patrick Gansterer
d48eecd6fe Send messages only to users which have not been deleted 2017-02-15 23:47:10 +01:00
wvengen
504c8b6192 Merge pull request #459 from foodcoop1040/smtp
Add SMTP server for handling reply emails
2017-02-15 11:31:17 +01:00