Add creator to filter collections
This commit is contained in:
parent
a3c480248f
commit
e119aed229
@ -195,7 +195,8 @@ def submit_media(mg_app, user, submitted_file, filename,
|
||||
|
||||
# add to collection
|
||||
if collection_slug:
|
||||
collection = Collection.query.filter_by(slug=collection_slug).first()
|
||||
collection = Collection.query.filter_by(slug=collection_slug, creator=user.id).first()
|
||||
if collection:
|
||||
add_media_to_collection(collection, entry)
|
||||
|
||||
# Pass off to processing
|
||||
|
Loading…
x
Reference in New Issue
Block a user