discourse/spec/requests/admin
Selase Krakani 586454bcf1
Refactor admin base controller (#18453)
* DEV: Add a dedicated Admin::StaffController base controller

The current parent(Admin:AdminController) for all admin-related controllers
uses a filter that allows only staff(admin, moderator) users.

This refactor makes Admin::AdminController filter for only admins as the name suggests and
introduces a base controller dedicated for staff-related endpoints.

* DEV: Set staff-only controllers parent to Admin::StaffController

Refactor staff-only controllers to inherit newly introduced
Admin::StaffController abstract controller. This conveys the
purpose of the parent controller better unlike the previously used parent
controller.
2022-10-31 12:02:26 +00:00
..
admin_controller_spec.rb DEV: Automatically require 'rails_helper' in all specs (#16077) 2022-03-01 17:50:50 +00:00
api_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
backups_controller_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
badges_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
color_schemes_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
dashboard_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
email_controller_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
email_styles_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
email_templates_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
embeddable_hosts_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
embedding_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
emojis_controller_spec.rb DEV: Automatically require 'rails_helper' in all specs (#16077) 2022-03-01 17:50:50 +00:00
groups_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
impersonate_controller_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
permalinks_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
plugins_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
reports_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
robots_txt_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
screened_emails_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
screened_ip_addresses_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
screened_urls_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
search_logs_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
site_settings_controller_spec.rb DEV: Sidebar default tags and categories are determined at user creation (#18620) 2022-10-27 06:38:50 +08:00
site_texts_controller_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
staff_action_logs_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
themes_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
user_fields_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
users_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
versions_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
watched_words_controller_spec.rb Refactor admin base controller (#18453) 2022-10-31 12:02:26 +00:00
web_hooks_controller_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00