change default, remove leftover

This commit is contained in:
Peter Bieringer 2024-09-30 21:43:50 +02:00
parent 0505b7b603
commit ba9776d688
4 changed files with 3 additions and 4 deletions

View file

@ -920,7 +920,7 @@ If True it can be forbidden by permissions per section with: d
(New since 3.3.0)
Global control of permission to overwrite complete collection (default: False)
Global control of permission to overwrite complete collection (default: True)
If False it can be permitted by permissions per section with: O
If True it can be forbidden by permissions per section with: o

2
config
View file

@ -116,7 +116,7 @@
#permit_delete_collection = True
# Permit overwrite of a collection (global)
#permit_overwrite_collection = False
#permit_overwrite_collection = True
[storage]

View file

@ -246,7 +246,7 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
"help": "permit delete of a collection",
"type": bool}),
("permit_overwrite_collection", {
"value": "False",
"value": "True",
"help": "permit overwrite of a collection",
"type": bool}),
("file", {

View file

@ -41,7 +41,6 @@ class TestBaseRequests(BaseTest):
def setup_method(self) -> None:
BaseTest.setup_method(self)
rights_file_path = os.path.join(self.colpath, "rights")
self.configure({"rights": {"permit_delete_collection": True}})
with open(rights_file_path, "w") as f:
f.write("""\
[permit delete collection]