mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
Fix assistants not being able to view/edit user links when they should
This commit is contained in:
parent
c7208a3098
commit
fcd57a575a
1 changed files with 6 additions and 0 deletions
|
@ -250,9 +250,15 @@ defimpl Canada.Can, for: [Atom, Philomena.Users.User] do
|
|||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :show, %UserLink{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :create_links, %User{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :edit, %UserLink{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :edit_links, %User{}),
|
||||
do: true
|
||||
|
||||
def can?(%User{role: "assistant", role_map: %{"UserLink" => "moderator"}}, :index, %UserLink{}),
|
||||
do: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue