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