export default {
  methods: {
    /*
    * Allow to check if user has an access to the dashboard
    * @return {Boolean}
    */
    $_checkDashboardAccess () {
      return this.getCheckedData(this.getUserInfos, ['permissions', 'custom']) && this.getUserInfos.permissions.custom.indexOf('access dashboard') > -1
    }
  }
}
