Skip to content

Pickers in the user view throw console error when user has no access to pages/files #8088

Description

@afbora

Description

I've tested the textarea and writer fields in the user view. If a role doesn't have access permissions to files or pages, an error occurs in the console and the loading spin keeps running.

title: Editor

permissions:
  pages:
    access: true
    list: false
  files:
    access: false
    list: false
    
sections:
  files:
    type: files
  fields:
    fields:
      textarea:
        type: textarea
      writer:
        type: writer

Expected behavior (one of following)

  • If it doesn't have access to pages/files, that selection might not be listed at all.
  • Page/file selection might be disabled.
  • When a selection is made, only an empty list appears and no error is thrown for the console.

Screenshots

Image Image Image

To reproduce

  1. Create an editor role with like above blueprint
  2. Login to panel as editor role
  3. Go to an user detail or own account page
  4. Try to link text to the page or file via using textarea or writer field
  5. You'll see spinner with empty list
  6. Also you can check the browser console

Your setup

Kirby Version
5.3.3 & 5.3.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions