projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test on changing [:instance, :upload_limit]
[akkoma]
/
lib
/
pleroma
/
web
/
admin_api
/
controllers
/
chat_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/chat_controller.ex
b/lib/pleroma/web/admin_api/controllers/chat_controller.ex
index 3761a588a98c96024e72570cb59dca8dcd5bcd6f..ff20c8604360d2a33044df8e019da7b73958e6e3 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/chat_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/chat_controller.ex
@@
-21,12
+21,12
@@
defmodule Pleroma.Web.AdminAPI.ChatController do
plug(
OAuthScopesPlug,
plug(
OAuthScopesPlug,
- %{scopes: ["
read:chats"], admin: true
} when action in [:show, :messages]
+ %{scopes: ["
admin:read:chats"]
} when action in [:show, :messages]
)
plug(
OAuthScopesPlug,
)
plug(
OAuthScopesPlug,
- %{scopes: ["
write:chats"], admin: true
} when action in [:delete_message]
+ %{scopes: ["
admin:write:chats"]
} when action in [:delete_message]
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)