mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
Forgot this one as well
This commit is contained in:
parent
83b033a779
commit
34cae34236
@ -207,7 +207,13 @@ def create_album(groupe_uuid):
|
||||
except db.IntegrityError:
|
||||
pass
|
||||
|
||||
return redirect(f"/groupe/{groupe.uuid}/{uuid}")
|
||||
if "response" in request.args and request.args["response"] == "json":
|
||||
return {
|
||||
"status": "ok",
|
||||
"uuid": uuid
|
||||
}
|
||||
else:
|
||||
return redirect(f"/groupe/{groupe.uuid}/{uuid}")
|
||||
|
||||
flash(error)
|
||||
return redirect(request.referrer)
|
||||
|
Loading…
Reference in New Issue
Block a user