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
/
invite_controller.ex
diff --git
a/lib/pleroma/web/admin_api/controllers/invite_controller.ex
b/lib/pleroma/web/admin_api/controllers/invite_controller.ex
index 6a9b4038a13088d50f3823173b2811ef8baf8098..727ebd846f52acb2028a75b6828e8c08e1a4cd66 100644
(file)
--- a/
lib/pleroma/web/admin_api/controllers/invite_controller.ex
+++ b/
lib/pleroma/web/admin_api/controllers/invite_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.InviteController do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.AdminAPI.InviteController do
@@
-14,11
+14,11
@@
defmodule Pleroma.Web.AdminAPI.InviteController do
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
require Logger
plug(Pleroma.Web.ApiSpec.CastAndValidate)
- plug(OAuthScopesPlug, %{scopes: ["
read:invites"], admin: true
} when action == :index)
+ plug(OAuthScopesPlug, %{scopes: ["
admin:read:invites"]
} when action == :index)
plug(
OAuthScopesPlug,
plug(
OAuthScopesPlug,
- %{scopes: ["
write:invites"], admin: true
} when action in [:create, :revoke, :email]
+ %{scopes: ["
admin:write:invites"]
} when action in [:create, :revoke, :email]
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)
)
action_fallback(Pleroma.Web.AdminAPI.FallbackController)