Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to configure default visibility for directories #139

Closed
wants to merge 3 commits into from

Conversation

brusch
Copy link

@brusch brusch commented May 16, 2023

Currently it's not possible to configure the default visibility for directories.
This could cause some unexpected behavior, e.g. when the root directory of the local storage doesn't exist, it get's created, but using the default visibility and not the configured directory_visibility of the storage.

With this PR it's at least possible to set the default visibility for the storage.

This could be considered as a follow up to #69

@@ -83,6 +84,7 @@ protected function configureDefinition(Definition $definition, array $options)
'private' => (int) $options['permissions']['dir']['private'],
],
])
->addArgument($options['default_for_directories'] ?? Visibility::PRIVATE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not fix the problem, default_for_directories cannot be set

@maxhelias
Copy link
Collaborator

Thank you for all your work. I made another PR that covers the other adapters. #153

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants