projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f093cb
)
Let moderators manage custom emojis
author
Alex Gleason
<alex@alexgleason.me>
Tue, 13 Jul 2021 03:03:32 +0000
(22:03 -0500)
committer
Alex Gleason
<alex@alexgleason.me>
Tue, 13 Jul 2021 03:11:38 +0000
(22:11 -0500)
lib/pleroma/web/router.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/router.ex
b/lib/pleroma/web/router.ex
index 919f4f510680a1f860e80fb292db7c1e95d96ff7..ecb10d95c2a8908c18a44bef2a0a515ff58bdb38 100644
(file)
--- a/
lib/pleroma/web/router.ex
+++ b/
lib/pleroma/web/router.ex
@@
-265,7
+265,7
@@
defmodule Pleroma.Web.Router do
scope "/api/v1/pleroma/emoji", Pleroma.Web.PleromaAPI do
scope "/pack" do
- pipe_through(
[:admin_api, :require_admin]
)
+ pipe_through(
:admin_api
)
post("/", EmojiPackController, :create)
patch("/", EmojiPackController, :update)
@@
-280,7
+280,7
@@
defmodule Pleroma.Web.Router do
# Modifying packs
scope "/packs" do
- pipe_through(
[:admin_api, :require_admin]
)
+ pipe_through(
:admin_api
)
get("/import", EmojiPackController, :import_from_filesystem)
get("/remote", EmojiPackController, :remote)