mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
Add a comment
This commit is contained in:
parent
025e9d2710
commit
9786063dbb
@ -53,6 +53,7 @@ class WidgetListResource(BaseResource):
|
||||
class WidgetResource(BaseResource):
|
||||
@require_permission('edit_dashboard')
|
||||
def post(self, widget_id):
|
||||
# This method currently handles Text Box widgets only.
|
||||
widget = models.Widget.get_by_id_and_org(widget_id, self.current_org)
|
||||
require_admin_or_owner(widget.dashboard.user_id)
|
||||
widget_properties = request.get_json(force=True)
|
||||
|
Loading…
Reference in New Issue
Block a user