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

setLocallyAllowedTypes in constrains does not permit setting no allowed types #354

Open
mblandi opened this issue Oct 5, 2022 · 0 comments

Comments

@mblandi
Copy link

mblandi commented Oct 5, 2022

The check for default types within setLocallyAllowedTypes is nice to avoid problems, but it does not allow for a case when you may want to allow no types in a folder.

Something like this

if type_ not in defaults and type_ != '':

could be more elegant, but seems to work.

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

No branches or pull requests

1 participant