Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation for `error.access.view` missing #1997

Closed
texnixe opened this issue Aug 11, 2019 · 1 comment

Comments

@texnixe
Copy link
Contributor

commented Aug 11, 2019

Describe the bug
When trying to access the users view or a subview via URL, the error message error.access.view pops up. It has abviously no translations into any languages.

To Reproduce
Steps to reproduce the behavior:

  1. Log in to Panel with a user without access to the users view.
  2. Call $user->panelUrl() from a template or enter the Url to the users view or a single user manually
  3. See error

Expected behavior
A proper error message should be shown

Screenshots
If applicable, add screenshots to help explain your problem.

Kirby Version
Tested with 3.2.3.

The error message is thrown here (/kirby/panel/src/config/auth.js

    if (access[to.meta.view] === false) {
      store.dispatch("notification/error", {
        message: Vue.i18n.translate("error.access.view")
      });

      return next("/");
    }

@distantnative distantnative added this to the 3.2.4 milestone Aug 11, 2019

@distantnative distantnative self-assigned this Aug 11, 2019

distantnative added a commit that referenced this issue Aug 11, 2019
@bastianallgeier

This comment has been minimized.

Copy link
Contributor

commented Aug 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.