Skip to content

Set favorite chart is only possible for the chart owners #36355

@brenot-a

Description

@brenot-a

Bug description

  1. Create chart with a user
  2. Log with another user which has access to the chart
  3. On welcome page, try to set chart as favorite

A 403 error occurs. When i look into the code, it's because i'm not the owner https://github.com/apache/superset/blob/5.0/superset/commands/chart/fave.py#L53. But shouldn't someone with access rights, but who is not an owner, be able to add it to their favorites ?

Screenshots/recordings

Try to set favorite with a user which is not the owner:

Image

Error :

Image Image

Superset version

5.0.0

Python version

3.11

Node version

18 or greater

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    global:usersRelated to users and roleshome:favoriteRelated to the "favorite" section of the Homepage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions