Per object permission "can_view_project" on projects.Project model instances. Project creators are granted this permission on initialization. Members can be granted and revoked using 'projects:grant_access' and 'projects:revoke_access'. Observe that currently there is no "admin" for a Project, all members can access Project settings.
Removed 'projects:environments' and 'projects:readme' views and url patterns since these seem to currently not be used.
Updated auth request ingress for jupyter lab (experimental stage) where the project slug is sent as GET param by the ingress controller. The permission above is then evaluated, i.e only members of a project can access the lab app. Observe that his is not optimal for apps that should be able to be "published", we need a different permission for this.
EDIT:
Also added obj perm on stackn apps and models. This need to be tested before release, so that "publish" work as expected".
I have done some basic testing in the UI.
Types of changes
What types of changes does your code introduce to STACKn?
[ ] Hotfix (fixing a critical bug in production)
[ ] Bugfix
[x] New feature
[ ] Documentation update
Checklist
[x] This pull request is against develop branch (not applicable for hotfixes)
Status
Description
Per object permission "can_view_project" on projects.Project model instances. Project creators are granted this permission on initialization. Members can be granted and revoked using 'projects:grant_access' and 'projects:revoke_access'. Observe that currently there is no "admin" for a Project, all members can access Project settings.
Removed 'projects:environments' and 'projects:readme' views and url patterns since these seem to currently not be used.
Updated auth request ingress for jupyter lab (experimental stage) where the project slug is sent as GET param by the ingress controller. The permission above is then evaluated, i.e only members of a project can access the lab app. Observe that his is not optimal for apps that should be able to be "published", we need a different permission for this.
EDIT: Also added obj perm on stackn apps and models. This need to be tested before release, so that "publish" work as expected". I have done some basic testing in the UI.
Types of changes
What types of changes does your code introduce to STACKn?
Checklist