udata 6.1.8.dev26117__py2.py3-none-any.whl → 6.1.8.dev26180__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of udata might be problematic. Click here for more details.

udata/core/topic/api.py CHANGED
@@ -1,5 +1,4 @@
1
1
  from udata.api import api, fields, API
2
- from udata.auth import admin_permission
3
2
 
4
3
 
5
4
  from udata.core.dataset.api_fields import dataset_fields
@@ -63,7 +62,6 @@ class TopicsAPI(API):
63
62
  .paginate(args['page'], args['page_size']))
64
63
 
65
64
  @api.doc('create_topic')
66
- @api.secure(admin_permission)
67
65
  @api.expect(topic_fields)
68
66
  @api.marshal_with(topic_fields)
69
67
  @api.response(400, 'Validation error')
@@ -84,7 +82,6 @@ class TopicAPI(API):
84
82
  return topic
85
83
 
86
84
  @api.doc('update_topic')
87
- @api.secure(admin_permission)
88
85
  @api.expect(topic_fields)
89
86
  @api.marshal_with(topic_fields)
90
87
  @api.response(400, 'Validation error')
@@ -94,7 +91,6 @@ class TopicAPI(API):
94
91
  return form.save()
95
92
 
96
93
  @api.doc('delete_topic')
97
- @api.secure(admin_permission)
98
94
  @api.response(204, 'Object deleted')
99
95
  def delete(self, topic):
100
96
  '''Delete a given topic'''