Skip to content

Commit e148969

Browse files
committed
Rename RestrictType -> RestrictUserType
1 parent 814e797 commit e148969

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/plausible_web/controllers/auth_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ defmodule PlausibleWeb.AuthController do
4040
]
4141
)
4242

43-
plug Plausible.Plugs.RestrictType,
43+
plug Plausible.Plugs.RestrictUserType,
4444
:sso when action in [:delete_me, :disable_2fa]
4545

4646
plug(

lib/plausible_web/controllers/settings_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule PlausibleWeb.SettingsController do
1717
plug Plausible.Plugs.AuthorizeTeamAccess,
1818
[:owner] when action in [:team_danger_zone, :delete_team]
1919

20-
plug Plausible.Plugs.RestrictType,
20+
plug Plausible.Plugs.RestrictUserType,
2121
:sso when action in [:update_name, :update_email, :update_password]
2222

2323
def index(conn, _params) do

lib/plausible_web/plugs/restrict_type.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
defmodule Plausible.Plugs.RestrictType do
1+
defmodule Plausible.Plugs.RestrictUserType do
22
@moduledoc """
33
Plug for restricting user access by type.
44
"""

0 commit comments

Comments
 (0)