projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'purge chat and shout endpoints' (#97) from purge-chat into develop
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
controllers
/
o_auth_app_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/o_auth_app_controller.ex
b/lib/pleroma/web/admin_api/controllers/o_auth_app_controller.ex
index 116a05a4df166963735bbd35af928b8d87402e52..51b17d392862f502b873582e0619baa62b007dea 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/o_auth_app_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/o_auth_app_controller.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.OAuthAppController do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.OAuthAppController do
@@
-13,11
+13,10
@@
defmodule Pleroma.Web.AdminAPI.OAuthAppController do
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
- plug(:put_view, Pleroma.Web.MastodonAPI.AppView)
plug(
OAuthScopesPlug,
plug(
OAuthScopesPlug,
- %{scopes: ["
write"], admin: true
}
+ %{scopes: ["
admin:write"]
}
when action in [:create, :index, :update, :delete]
)
when action in [:create, :index, :update, :delete]
)