Skip to content

[Bug]: CKE Allow browser based on folder permissions doesn't work on host level #5812

@skamphuis

Description

@skamphuis

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

PR #5762 for issue #5761 introduced a setting for the CKEditor provider, to allow the filebrowser to be enabled or disabled, based on the user's permissions on the opened folder.

As it turns out, this setting does not work when set on host level. That is: you can set it on host level, and it will show as set on site level too, but when rendering the editor, a user with permissions still doesn't get a "Brose Server" button in the image popup.

Steps to reproduce?

  1. Go to CKE settings in Site Settings
  2. Uncheck "This site only"
  3. Check "Allow users with folder permissions" on the second tab
  4. Make sure only administrators role is checked in the allowed roles setting
  5. Save
  6. Login with a user that has edit rights on a page, but is not an administrator
  7. Edit and HTML/Text module
  8. Notice ther's no browse server button in the image dialog

Current Behavior

No response

Expected Behavior

When this setting is set on host level, a non-admin user with edit rights, should be able to browse the server for images.

Relevant log output

No response

Anything else?

I'm wokring on a PR.

Affected Versions

9.12.0 (latest release)

What browsers are you seeing the problem on?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions