Skip to content

[Enhancement]: CKE option to allow file browser based on folder permissions #5761

@skamphuis

Description

@skamphuis

Is there an existing issue for this?

  • I have searched the existing issues

Description of problem

In CKEditorProvider options, it can be set which roles are allowed to use the file browser popup. In many situations however, the browser popup is allowed for users that have access to the file browser root folder.
The browser already checks for permissions of the user to be able to use it, so it would make sense to also be able use the folder permissions to control the visibility of the button.

Description of solution

I propose to add an option to allow the file browser button to be shown when the user has (at least) read access to the file browser's root folder.

This should add up to the current configuration based on roles: if the user has permission to the file browser button in either way: he'll get the button.

Description of alternatives considered

I considered adding a "fake" role for this purpose to the roles chjeckboxlist, but I figured it would be better as an extra option, so it can be configured as an "extra" way of allowing the user to access the browser.

Anything else?

No response

Do you be plan to contribute code for this enhancement?

  • Yes

Would you be interested in sponsoring this enhancement?

  • Yes

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