Commit Graph

10 Commits (47b8d195e6ea5bc5f3cd4fe3a5be0b25ec322f10)

Author SHA1 Message Date
aus-social 1f98eae1cf Lint pass ()
Jakub Mendyk 6cb3514d64 Add ability to change an instance default theme from the administration panel () ()
* Add default_settings class method to ScopedSettings

ScopedSettings was extended to use value of unscoped setting instead of
only using defaults set in config/settings.yml for selected settings.
This adds possibility for admins to set default values of users' settings,
for example default theme (as requested in ).

* Add ability to change an instance default theme

Closes 
Yamagishi Kazutoshi d10447c3a8 Use raw status code on have_http_status ()
Emelia Smith 2e59751823 Improve require_admin! and require_staff! filters ()
Previously these returns 302 redirects instead of 403s, which meant posting links to admin pages in slack caused them to unfurl, rather than stay as a link. Additionally, require_admin! doesn't appear to be actively used, on require_staff!
Yamagishi Kazutoshi 1d92b90be9 Fix force_ssl conditional ()
unarist 0f1b1d78b1 Use "match_array" only for order independent assertions ()
Akihiko Odaki (@fn_aki@pawoo.net) 10768aa204 Spec response for forgery ()
Remove protect_from_forgery in ApiController, which is disabled by the
following skip_before_action, as well.
Yamagishi Kazutoshi 41fa53253c Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) ()
* Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail)

* use climate_control
Akihiko Odaki bda7391221 Cover ApplicationController more in spec ()
Akihiko Odaki aa662cecad single_user_mode? always returns boolean ()
This change also adds a specification for the method.