flask_jsondash icon indicating copy to clipboard operation
flask_jsondash copied to clipboard

edit_others not working

Open datdinhquoc opened this issue 5 years ago • 1 comments

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
    )
)

datdinhquoc avatar Sep 28 '18 03:09 datdinhquoc

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.

christabor avatar Oct 01 '18 15:10 christabor