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
/
status_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/status_controller.ex
b/lib/pleroma/web/admin_api/controllers/status_controller.ex
index 903badec0431aad5f5dc28bc645383a1a2413095..7058def82b8ab1f4397ef242746b1a980946e951 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/status_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/status_controller.ex
@@
-15,11
+15,11
@@
defmodule Pleroma.Web.AdminAPI.StatusController do
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
- plug(OAuthScopesPlug, %{scopes: ["
read:statuses"], admin: true
} when action in [:index, :show])
+ plug(OAuthScopesPlug, %{scopes: ["
admin:read:statuses"]
} when action in [:index, :show])
plug(
OAuthScopesPlug,
plug(
OAuthScopesPlug,
- %{scopes: ["
write:statuses"], admin: true
} when action in [:update, :delete]
+ %{scopes: ["
admin:write:statuses"]
} when action in [:update, :delete]
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)