Anonymous uploads replaced by creation of ad-hoc users
This commit is contained in:
parent
d9d0babb2c
commit
0bfacbee30
7 changed files with 78 additions and 48 deletions
|
|
@ -48,7 +48,7 @@ class Package < ApplicationRecord
|
|||
|
||||
# Return a query of all approved/public screenshots of this package
|
||||
def screenshots_approved
|
||||
self.screenshots.find_by(approved: true)
|
||||
self.screenshots.where(approved: true)
|
||||
end
|
||||
|
||||
# Return a query of all approved/public screenshots of this package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue