[#1427] Extra check that admin OAuth scope is used by admin. Adjusted tests.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 7 Dec 2019 14:49:53 +0000 (17:49 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sat, 7 Dec 2019 14:49:53 +0000 (17:49 +0300)
commit1770602747ae95d95d12c5601f99ced8699e8947
tree7c7a910a65e1d72791c3a9a4a988ad1a377ebd82
parent40e1817f707c3c2ef253009c7363cd81b11322a6
[#1427] Extra check that admin OAuth scope is used by admin. Adjusted tests.
lib/pleroma/plugs/user_is_admin_plug.ex
lib/pleroma/user.ex
test/plugs/user_is_admin_plug_test.exs
test/web/admin_api/admin_api_controller_test.exs