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
Closed

Translation for error.access.view missing #1997

texnixe opened this issue Aug 11, 2019 · 1 comment
Assignees
Labels
type: i18n 🌏 Is translation-related
Milestone

Comments

@texnixe
Copy link
Member

texnixe 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 distantnative added type: i18n 🌏 Is translation-related and removed type: bug 🐛 Is a bug; fixes a bug labels Aug 11, 2019
@bastianallgeier
Copy link
Member

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: i18n 🌏 Is translation-related
Projects
None yet
Development

No branches or pull requests

3 participants