Let moderators manage custom emojis
authorAlex Gleason <alex@alexgleason.me>
Tue, 13 Jul 2021 03:03:32 +0000 (22:03 -0500)
committerAlex Gleason <alex@alexgleason.me>
Tue, 13 Jul 2021 03:11:38 +0000 (22:11 -0500)
lib/pleroma/web/router.ex

index 919f4f510680a1f860e80fb292db7c1e95d96ff7..ecb10d95c2a8908c18a44bef2a0a515ff58bdb38 100644 (file)
@@ -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)