[#1427] Reworked admin scopes support.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 5 Dec 2019 21:25:44 +0000 (00:25 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 5 Dec 2019 21:25:44 +0000 (00:25 +0300)
commitaf42c00cfffb2cd8e93857cd1cf2901113c45bd2
treea98edf7a3b38b7fae020485100732ef3ba47542e
parent51111e286b316340b45b4e6a378646bed0cb0a6a
[#1427] Reworked admin scopes support.
Requalified users.is_admin flag as legacy accessor to admin actions in case token lacks admin scope(s).
CHANGELOG.md
config/config.exs
config/description.exs
lib/mix/tasks/pleroma/user.ex
lib/pleroma/config.ex
lib/pleroma/plugs/user_is_admin_plug.ex
lib/pleroma/user.ex
lib/pleroma/web/admin_api/admin_api_controller.ex
lib/pleroma/web/oauth/scopes.ex
lib/pleroma/web/pleroma_api/controllers/emoji_api_controller.ex
test/web/admin_api/admin_api_controller_test.exs