export default {
  methods: {
    $_checkRoles(allowedRoles) {
      // current user roles
      const currentRoles = this.getCheckedData(
        this.getUserInfos,
        ['permissions', 'roles'],
        []
      )

      return allowedRoles.some(role => currentRoles.includes(role))
    }
  }
}
