Skip to content

Commit

Permalink
closes #158
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjagar committed Dec 14, 2023
1 parent 796e269 commit e2e1eaa
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ import MapLoader from '../components/MapLoader';
import _ from 'lodash';
import { mapActions, mapGetters, mapState } from 'vuex';
import InfoSources from '../components/InfoSources';
import UserRoles from '@/authorization';
export default {
name: 'crashForm',
components: { Photos, Breadcrumbs, MapLoader, InfoSources },
Expand Down Expand Up @@ -716,7 +717,9 @@ export default {
},
},
isAircrashEditor() {
return this.$store.state.auth.user.roles.includes('Administrator');
return this.$store.state.auth.user.roles.includes(
UserRoles.AIRPLANE_CRASH_EDITOR
);
},
isAdministrator() {
return this.$store.state.auth.user.roles.includes('Administrator');
Expand Down

0 comments on commit e2e1eaa

Please sign in to comment.