Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit_others not working #185

Open
datdinhquoc opened this issue Sep 28, 2018 · 1 comment
Open

edit_others not working #185

datdinhquoc opened this issue Sep 28, 2018 · 1 comment
Labels

Comments

@datdinhquoc
Copy link

datdinhquoc commented Sep 28, 2018

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
    )
)
@christabor
Copy link
Owner

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 christabor added the bug label Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants