return approved screenshots only in public json. fixes #96
This commit is contained in:
parent
e2473ff511
commit
9d0009b129
3 changed files with 16 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ class JsonController < ApplicationController
|
|||
# JSON information on all packages
|
||||
def packages
|
||||
expires_in 1.days, public: true
|
||||
@p = Package.all
|
||||
@p = Package.with_public_screenshots
|
||||
end
|
||||
|
||||
# JSON information on all screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue