Fix lint errors
authorAlibek Omarov <a1ba.omarov@gmail.com>
Mon, 27 Dec 2021 00:12:32 +0000 (03:12 +0300)
committerAlibek Omarov <a1ba.omarov@gmail.com>
Mon, 27 Dec 2021 00:42:03 +0000 (03:42 +0300)
config/description.exs
lib/pleroma/web/plugs/ensure_staff_privileged_plug.ex [moved from lib/pleroma/web/plugs/ensure_staff_privileged.ex with 100% similarity]
lib/pleroma/web/router.ex

index a8fbd4d73be9854ffc211247cd5528e3f7327ed3..ea3f34abe6c3a71df1d6a121d16ec799ff9d5780 100644 (file)
@@ -945,7 +945,8 @@ config :pleroma, :config_description, [
       %{
         key: :privileged_staff,
         type: :boolean,
-        description: "Let moderators access sensitive data (e.g. updating user credentials, get password reset token, delete users, index and read private statuses and chats)"
+        description:
+          "Let moderators access sensitive data (e.g. updating user credentials, get password reset token, delete users, index and read private statuses and chats)"
       }
     ]
   },
similarity index 100%
rename from lib/pleroma/web/plugs/ensure_staff_privileged.ex
rename to lib/pleroma/web/plugs/ensure_staff_privileged_plug.ex
index b15ddfc560c371374181d7dcf0fa9c1bd68e8ff9..fe0a11decdfc3119f0ef3c0fe2264a68c411a165 100644 (file)
@@ -10,8 +10,8 @@ defmodule Pleroma.Web.Plugs.EnsureStaffPrivilegedPlug do
   import Pleroma.Web.TranslationHelpers
   import Plug.Conn
 
-  alias Pleroma.User
   alias Pleroma.Config
+  alias Pleroma.User
 
   def init(options) do
     options
index 5473cd93d45e20527571ba20c647cdca610200b2..02ca8d70a3cc9ad4366b14d2c5a8a42259ab12fe 100644 (file)
@@ -238,7 +238,7 @@ defmodule Pleroma.Web.Router do
     delete("/users", UserController, :delete)
 
     get("/users/:nickname/password_reset", AdminAPIController, :get_password_reset)
-    patch("/users/:nickname/credentials", AdminAPIController, :update_user_credentials)    
+    patch("/users/:nickname/credentials", AdminAPIController, :update_user_credentials)
 
     get("/users/:nickname/statuses", AdminAPIController, :list_user_statuses)
     get("/users/:nickname/chats", AdminAPIController, :list_user_chats)