-
Notifications
You must be signed in to change notification settings - Fork 5
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
Restrict stage visibility based on membership #762
Comments
This might be a little challenging to do efficiently with the current setup and may require a new (pretty simple) query either way. |
@kalilsn I agree that the requirement to show/hide the Workflows link adds a bit of overhead (one query per page load) for little gain. Instead I think we could always show the link and just put an informative message on the Workflows page if no stages are accessible to the user. Thoughts @gabestein ? |
this would involve the following, though I'd love confirmation that this sounds on the right track:
|
I think this is a community editor- and admin-only view anyway, so we can probably just not render it if you don't have access to view all stages? We will eventually want to support a case where you can be just a stage editor, but I don't think we'll render the workflows page for you — just a stage settings page. |
Motivation
So users only see stages they have permission to view.
Requirements
Modify stage-related queries so that:
If a user does not have the ability to see any stages, the link to "Workflows" in the side nav should not appear.
Acceptance Criteria
viewStage
capability for each rendered stage.The text was updated successfully, but these errors were encountered: