Skip to content

Commit

Permalink
There is a difference between false and 'false'
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schauer-Koeckeis <[email protected]>
  • Loading branch information
Gepardgame committed Nov 18, 2024
1 parent 3461e52 commit 6b13831
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/portfolio/projects/ProjectCreateProjectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ import { Switch as cSwitch } from '@coreui/vue';
import permissionsMixin from '../../../mixins/permissionsMixin';
import Multiselect from 'vue-multiselect';
import BInputGroupFormSwitch from '@/forms/BInputGroupFormSwitch.vue';
import common from '../../../shared/common';
export default {
name: 'ProjectCreateProjectModal',
Expand Down Expand Up @@ -312,7 +313,9 @@ export default {
async getACLEnabled() {
let url = `${this.$api.BASE_URL}/${this.$api.URL_CONFIG_PROPERTY}/public/access-management/acl.enabled`;
let response = await this.axios.get(url);
this.requiresTeam = response.data.propertyValue.toString();
this.requiresTeam = common.toBoolean(
response.data.propertyValue.toString(),
);
},
async getAvailableTeams() {
let url = `${this.$api.BASE_URL}/${this.$api.URL_TEAM}/visible`;
Expand Down

0 comments on commit 6b13831

Please sign in to comment.