Add ability to view approved screenshots for anonymous users

This commit is contained in:
Christoph Haas 2021-02-28 22:42:28 +01:00
parent eee196507b
commit f154c1838c

View file

@ -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