Add ability to view approved screenshots for anonymous users
This commit is contained in:
parent
eee196507b
commit
f154c1838c
1 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,8 @@ class Ability
|
|||
# Allow to view any own uploads (even not-yet-approved)
|
||||
can :view, Screenshot, user_id: user.id
|
||||
end
|
||||
else # Nobody logged in
|
||||
can :view, Screenshot, approved: true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue