remove auth from notification read

This commit is contained in:
Luna D 2020-03-03 13:54:47 -05:00
parent bb4cbdb089
commit 8378e07bb8
No known key found for this signature in database
GPG key ID: D0F46C94720BAA4B
2 changed files with 2 additions and 4 deletions

View file

@ -5,7 +5,7 @@ defmodule PhilomenaWeb.Forum.ReadController do
alias Philomena.Forums.Forum alias Philomena.Forums.Forum
alias Philomena.Forums alias Philomena.Forums
plug :load_and_authorize_resource, plug :load_resource,
model: Forum, model: Forum,
id_name: "forum_id", id_name: "forum_id",
id_field: "short_name", id_field: "short_name",

View file

@ -5,9 +5,7 @@ defmodule PhilomenaWeb.Topic.ReadController do
alias Philomena.Forums.Forum alias Philomena.Forums.Forum
alias Philomena.Topics alias Philomena.Topics
plug PhilomenaWeb.CanaryMapPlug, create: :show plug :load_resource,
plug :load_and_authorize_resource,
model: Forum, model: Forum,
id_name: "forum_id", id_name: "forum_id",
id_field: "short_name", id_field: "short_name",