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

Filter out private projects from the API #1946

Closed
KasperBrandt opened this issue Dec 3, 2015 · 0 comments
Closed

Filter out private projects from the API #1946

KasperBrandt opened this issue Dec 3, 2015 · 0 comments

Comments

@KasperBrandt
Copy link
Contributor

Test plan

GIVEN that a project has been set as a private project
WHEN a user that doesn't have edit rights to the project requests the project in the API
THEN the project (and all its related objects) should not appear in the API

GIVEN that a project has been set as a private project
WHEN a user that has edit rights to the project requests the project in the API
THEN the project (and all its related objects) should appear in the API

GIVEN that a project has been set as a private project
WHEN a user wants to edit the project in the editor (and thus has edit rights)
THEN the user should be able to edit the project

Issue description

Private projects should be filtered from the API, as they should not be visible anywhere. Only users that have permission to edit these projects should be able to retrieve these projects from the API.

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

No branches or pull requests

1 participant