docbrown/app/queries/admin
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
..
moderators_query.rb 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
users_query.rb [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00