mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
more stringent on user indexing
This commit is contained in:
parent
632ec78f0b
commit
b4fbec1f66
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ defmodule PhilomenaWeb.Admin.UserController do
|
|||
import Ecto.Query
|
||||
|
||||
plug :verify_authorized
|
||||
plug :load_resource, model: User, only: [:edit, :update], id_field: "slug", preload: [:roles]
|
||||
plug :load_and_authorize_resource, model: User, only: [:edit, :update], id_field: "slug", preload: [:roles]
|
||||
plug :load_roles when action in [:edit]
|
||||
|
||||
def index(conn, %{"q" => q}) do
|
||||
|
|
Loading…
Reference in a new issue