You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
384B

  1. import { computed } from '@vue/composition-api'
  2. export const useAuth = (context) => {
  3. const isMaster = computed(() => {
  4. return context.root.$store.getters.isMaster
  5. })
  6. const isAdmin = (id) => {
  7. return context.root.$store.getters.isAdmin(id)
  8. }
  9. const isOrga = (id) => {
  10. return context.root.$store.getters.isOrga(id)
  11. }
  12. return { isMaster, isAdmin, isOrga }
  13. }