Skip to content

fix the problems with project sharing#478

Draft
josihoppe wants to merge 8 commits into
mainfrom
fix/sharing_rights
Draft

fix the problems with project sharing#478
josihoppe wants to merge 8 commits into
mainfrom
fix/sharing_rights

Conversation

@josihoppe
Copy link
Copy Markdown

  • add decorator to use in views instead of repeating checks for user / viewer
  • check the problems described in:
  • adjust sharing rights for these problems

Comment thread app/dashboard/views.py
@login_required
@json_view
@require_http_methods(["GET"])
@viewer_has_view_rights
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is viewer_has_view_rights the same (from a permissions perspective) as user.has_read_rights? If so, I find it confusing to have the two terminologies and would rename the decorator to user_has_read_rights

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graphs for the uploaded timeseries are not visible in a shared project

2 participants