Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The dashboard admin list view links to change views that the user may not have permission to use #130

@toolness

Description

@toolness

I noticed recently that our local installation of this project links to dashboard change views from the list view page (i.e. /admin/django_sql_dashboard/dashboard/) even when users don't have access to them. Here's an example:

image

The user here doesn't have the permission to change dashboards (though they do have permission to view them) yet the slugs in the screenshot above link to admin change views (e.g. URLs like /admin/django_sql_dashboard/dashboard/5/change/). When the user clicks on these links, the view raises a PermissionDenied error, which results in a 403 that isn't very helpful.

It would be nice if either the link wasn't hyperlinked at all, or if it took the user to a read-only version of the change page or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions