docbrown/app
Diogo Osório 3bc51a13cc
Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515)
* Makes the ModeratorsQuery not return an exception on invalid role

The current implementation of the query would yield an exception when
recieving an invalid state parameter. As per the [GH issue
discussion](https://github.com/forem/forem/issues/10060#issuecomment-692295217),
Zhao recommended to change its behaviour and not trigger an exception in
this condition.

This commit does just that. If the state argument is invalid, the query
now returns an empty result set.

* Adds a warning when there are no matching mods

* Re-trigger the build
2020-10-01 12:55:25 -06:00
..
assets [deploy] Refactor: Create setCurrentUserToNavBar (#10501) 2020-09-30 16:20:23 -04:00
black_box [deploy] Adjust score a little bit more (#10034) 2020-08-27 07:21:44 -04:00
controllers Remove redirect for listings#update (#10499) 2020-09-30 16:20:39 -04:00
dashboards [deploy] HTML Variant admin dashboard (#10188) 2020-09-28 09:22:13 -06:00
decorators [deploy] Fix unable to unfollow tags (#10324) 2020-09-25 13:00:55 -05:00
errors [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
fields
helpers Include locale in fragment cache key (#10199) 2020-09-09 16:58:04 -04:00
javascript Crayonsification of Listings form (#10429) 2020-09-30 09:14:48 +02:00
labor [deploy] Refactor edge caching logic to live in EdgeCache::Service (#10369) 2020-09-18 16:41:40 -05:00
lib Fix newlines being chomped in RSS import (#10476) 2020-09-29 10:38:36 -04:00
liquid_tags Fix bug that arises when a previously tagged comment is deleted (#10486) 2020-09-29 13:43:25 -04:00
mailers Add missing presence validators to models (#10495) 2020-10-01 16:15:32 +02:00
middlewares [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
models Add missing presence validators to models (#10495) 2020-10-01 16:15:32 +02:00
policies [deploy] [Admin Tooling] Allow admins unpublish articles from the Mod Actions Panel (#10038) 2020-09-02 16:08:08 -05:00
queries/admin Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515) 2020-10-01 12:55:25 -06:00
sanitizers [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
serializers [deploy] Refactor:Remove Reaction Search Code (#10377) 2020-09-23 12:27:50 -05:00
services Split EdgeCache::Bust into Fastly + Nginx-specific classes (#10505) [deploy] 2020-10-01 10:07:51 -07:00
uploaders [deploy] Bug Fix: Validate GIFs Frames and Add MiniMagick Timeout (#9319) 2020-07-15 09:49:24 -05:00
view_objects [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
views Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515) 2020-10-01 12:55:25 -06:00
workers Routine rubocop fixes (#10478) 2020-09-29 10:14:26 -04:00