aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_censor_rule_controller.rb
Commit message (Collapse)AuthorAgeLines
* Don't raise internal error when handling non-user or request rulesLouise Crow2014-12-18-9/+9
| | | | | | | Handle attempts to edit or destroy global or public body censor rules with a notice and a redirect. Closes #2009
* Refactor - group common logic branchesLouise Crow2014-12-18-28/+14
|
* Refactor shared setup to filterLouise Crow2014-12-18-2/+5
|
* RESTful routing for admin censor rule actionsLouise Crow2014-12-18-16/+8
|
* Use RESTful routes for CRUD admin user actionsLouise Crow2014-12-18-3/+3
|
* Use RESTful routing for index and show actionsLouise Crow2014-12-12-3/+3
|
* Use instance variable for CensorRule in #destroyGareth Rees2014-11-19-6/+9
| | | | | | Easier to check against the assigned variable, but the spec still fails because an internal error is raised if the rule is not associated with a User or InfoRequest
* Tidy AdminCensorRuleController#updateGareth Rees2014-11-19-3/+7
| | | | | | - Add linebreaks to break up sections - Remove unused parentheses - Use unless instead of if !
* Set the form URL to POST to in #createGareth Rees2014-11-19-0/+3
| | | | | | Direct the (re-rendered) form at the correct route for the association (or use the generic route if the rule is being created for some other reason)
* Associate censor rule with something in #createGareth Rees2014-11-19-2/+17
| | | | | Build the CensorRule against the object that is found by an additional parameter (either :info_request_id or :user_id)
* Set the form URL to POST to in #newGareth Rees2014-11-19-0/+4
| | | | | Direct the form at the correct route for the association (or use the generic route if the rule is being created for some other reason)
* Associate censor rule with something in #newGareth Rees2014-11-19-0/+2
| | | | | Build the CensorRule against the object that is found by an additional parameter (either :info_request_id or :user_id)
* Initialize a new CensorRule in #newGareth Rees2014-11-19-0/+2
|
* Change email address in header of source code to hello@mysociety.orgMatthew Landauer2013-03-26-1/+1
|
* Fix bug where current user was always shown when creating censor rule for a ↵Matthew Landauer2013-03-08-1/+1
| | | | request
* Stop using admin_url to generate absolute url for the admin interfaceMatthew Landauer2013-02-15-6/+6
|
* Redirect calls to admin_http_auth_user to more generic wrapper ↵Louise Crow2012-10-30-2/+2
| | | | admin_current_user
* Remove svn tags that are out of date as we are now using gitMatthew Landauer2012-10-09-2/+0
|
* Whether a rule is a regex rule should not affect the redirect that happens ↵Louise Crow2012-08-14-2/+0
| | | | after you create it.
* Support regular expressions in CensorRules; also support 'global' ↵Seb Bacon2012-07-13-0/+2
| | | | CensorRules that aren't attached to a User or Request or Public Body (but don't expose this in the admin UI). Fixes #33
* Remove trailing whitespace (to make a cleaner forthcoming merge with ↵Seb Bacon2012-05-15-1/+1
| | | | wombleton:feature/440_sparkly_admin_css)
* Edit interface for user level censor rules.Francis Irving2010-08-04-8/+47
|
* Use caching that allows pre-authentication.francis2009-06-30-7/+1
| | | | | Add test code for hidden requests. Make super users able to view hidden requests.
* "hidden" option to completely hide requests (from everyone except ↵francis2009-06-23-19/+1
| | | | administrator screens).
* Always give full stack trace for admin interfacefrancis2009-01-29-5/+2
|
* Oopsfrancis2008-11-04-9/+1
|
* Cache HTML versions of attachmentsfrancis2008-10-28-1/+12
|
* Make sure censor copes with filename renamefrancis2008-10-28-1/+9
|
* Code to flexibly remove text from requests, configured via database.francis2008-10-27-0/+72