flask_jsondash
flask_jsondash copied to clipboard
edit_others not working
I put return True
in the function can_edit_others
but it's not working, I don't see others' dashboards when I use admin user. Any user should be able to see all others' stuff when function can_edit_others
simply returns True. This happens only when I turn on filtering by username; when not filtering by username, I see all dashboards, all charts.
def can_edit_others(view_id):
return True
app.config["JSONDASH"] = dict(
...,
auth=dict(
edit_global = can_edit_global,
edit_others = can_edit_others
)
)
To contribute, you'll need to fork the project and then submit a pull request. As to this particular issue, I'll take a look.