diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-25 14:24:16 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-25 14:24:16 +0100 |
commit | 084cc18aa872b3cd1cbc8c38d34dc17341472391 (patch) | |
tree | 6cbd9df8976a64c342cae8428f15b98a5cb5a70b /app/models/info_request.rb | |
parent | af2d6d28571bb49d25b7982d1ba508b850a05b0f (diff) |
Support easy hiding of requests for admins. Currently not exposed in core admin interface (requires adminbootstraptheme).
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r-- | app/models/info_request.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 47398dabb..3e28b5537 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -90,7 +90,9 @@ class InfoRequest < ActiveRecord::Base 'error_message', 'requires_admin', 'user_withdrawn', - 'attention_requested' + 'attention_requested', + 'vexatious', + 'not_foi' ] if @@custom_states_loaded states += InfoRequest.theme_extra_states @@ -812,6 +814,10 @@ public _("Reported for administrator attention.") elsif status == 'user_withdrawn' _("Withdrawn by the requester.") + elsif status == 'vexatious' + _("Considered by administrators as vexatious and hidden from site.") + elsif status == 'not_foi' + _("Considered by administrators as not an FOI request and hidden from site.") else begin return self.theme_display_status(status) |