Skip to content

Commit

Permalink
Portfolio Access Control : Add a team group to project should only l…
Browse files Browse the repository at this point in the history
…ist projects that are not already added. #101

Signed-off-by: Ralf King <[email protected]>
  • Loading branch information
rkg-mm committed Dec 3, 2023
1 parent c20bd1e commit 97cde49
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/shared/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"URL_LICENSE_GROUP": "api/v1/licenseGroup",
"URL_ACL_MAPPING": "api/v1/acl/mapping",
"URL_ACL_TEAM": "api/v1/acl/team",
"URL_ACL_NOTASSIGNEDPROJECTS": "api/v1/acl/notassignedprojects",
"URL_VEX": "api/v1/vex",
"URL_OSV_ECOSYSTEM": "api/v1/integration/osv/ecosystem"
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
</b-col>
<b-col sm="6">
</b-col>
<select-project-modal v-on:selection="updateProjectSelection" />
<select-project-modal v-on:selection="updateProjectSelection" :teamUuid="team.uuid" />
</b-row>
`,
mixins: [permissionsMixin],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default {
components: {
cSwitch
},
props: {
teamUuid: String
},
data() {
return {
showInactiveProjects: false,
Expand Down Expand Up @@ -83,7 +86,7 @@ export default {
},
methods: {
apiUrl: function () {
let url = `${this.$api.BASE_URL}/${this.$api.URL_PROJECT}`;
let url = `${this.$api.BASE_URL}/${this.$api.URL_ACL_NOTASSIGNEDPROJECTS}/${this.teamUuid}`;
if (this.showInactiveProjects === undefined) {
url += "?excludeInactive=true";
} else {
Expand Down

0 comments on commit 97cde49

Please sign in to comment.