cms icon indicating copy to clipboard operation
cms copied to clipboard

Dynamic folders don't honour `restrict: false`

Open lukeagsmith opened this issue 4 months ago • 0 comments

Bug description

When dynamic is set on an asset field it doesn't allow browsing outside of the asset folder even when restrict is set to false.

There are occasions when a user may want to select an image that already exists elsewhere in assets.

Just the same as being able to create sub folders inside the dynamic folder, the dynamic folder is just the default starting point and restrict: true could always lock them into the folder if required.

If this is intended behaviour with no intention of being changed (😢) then setting dynamic should also force restrict: true.

How to reproduce

Hit browse on a dynamic asset field.

Logs

No response

Environment

Environment
Laravel Version: 11.26.0
PHP Version: 8.2.24
Composer Version: 2.7.7

Statamic
Version: 5.30.0

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

lukeagsmith avatar Oct 05 '24 12:10 lukeagsmith