[#1427] Fixes / improvements of admin scopes support. Added tests.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 6 Dec 2019 17:33:47 +0000 (20:33 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 6 Dec 2019 17:33:47 +0000 (20:33 +0300)
commit40e1817f707c3c2ef253009c7363cd81b11322a6
tree745e6b50be36a9f5a4e8f145134ce9554ec4c02a
parent93a80ee9155bf5257aa92afaca2fe017f28aabfa
[#1427] Fixes / improvements of admin scopes support. Added tests.
lib/pleroma/plugs/oauth_scopes_plug.ex
lib/pleroma/plugs/user_is_admin_plug.ex
lib/pleroma/web/admin_api/admin_api_controller.ex
lib/pleroma/web/pleroma_api/controllers/emoji_api_controller.ex
test/plugs/user_is_admin_plug_test.exs
test/web/admin_api/admin_api_controller_test.exs