open of security
This commit is contained in:
parent
919d4a43d3
commit
eab0400124
|
@ -197,11 +197,16 @@ class ActionView(View):
|
||||||
snapshot = SnapshotView(json, resource_def, self.schema)
|
snapshot = SnapshotView(json, resource_def, self.schema)
|
||||||
return snapshot.post()
|
return snapshot.post()
|
||||||
|
|
||||||
if not 'data' in json:
|
# TODO @cayop uncomment at four weeks
|
||||||
txt = 'Invalid snapshot'
|
# if not 'data' in json:
|
||||||
raise ValidationError(txt)
|
# txt = 'Invalid snapshot'
|
||||||
|
# raise ValidationError(txt)
|
||||||
|
|
||||||
snapshot_data = decode_snapshot(json)
|
# snapshot_data = decode_snapshot(json)
|
||||||
|
|
||||||
|
snapshot_data = json
|
||||||
|
if 'data' in json:
|
||||||
|
snapshot_data = decode_snapshot(json)
|
||||||
|
|
||||||
if not snapshot_data:
|
if not snapshot_data:
|
||||||
txt = 'Invalid snapshot'
|
txt = 'Invalid snapshot'
|
||||||
|
|
Reference in New Issue