diff options
author | Francis Irving <francis@mysociety.org> | 2010-08-04 12:45:00 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-08-04 12:45:00 +0100 |
commit | 999fb578a3f0f6cad1786bd9f62712f5e970d697 (patch) | |
tree | 80221c438aec0332ccd07f7b7563a89efa0b7a5d /app/controllers/admin_controller.rb | |
parent | a4a5a6bcf07484a45f9a18a3ec5d00d33585f901 (diff) |
Edit interface for user level censor rules.
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index ca5538e03..4734146a8 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -31,5 +31,12 @@ class AdminController < ApplicationController # also force a search reindexing (so changed text reflected in search) info_request.reindex_request_events end + + # Expire cached attachment files for a user + def expire_requests_for_user(user) + for info_request in user.info_requests + expire_for_request(info_request) + end + end end |