Skip to content

Dynamic folders don't honour restrict: false #10904

@lukeagsmith

Description

@lukeagsmith

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

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