[#1427] Graceful clearance of OAuth admin scopes for non-admin users (no error raised).
authorIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 12 Dec 2019 13:00:06 +0000 (16:00 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Thu, 12 Dec 2019 13:00:06 +0000 (16:00 +0300)
commit81b05340e9291e9af11727aee77f2c70a9d73498
tree44547032f0350639624180e111e7fad5febeaf09
parent79532a7f7c91f30a738d9c7a3b429b27c29a782d
[#1427] Graceful clearance of OAuth admin scopes for non-admin users (no error raised).
PleromaFE and other clients may safely request admin scope(s): if user isn't an admin, request is successful but only non-admin scopes from request are granted.
lib/pleroma/web/oauth/scopes.ex
test/web/oauth/oauth_controller_test.exs