mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Allow ~ in rights filename
This commit is contained in:
parent
45e844cda2
commit
fce91e7060
1 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,8 @@ user1: r
|
|||
|
||||
"""
|
||||
|
||||
import os.path
|
||||
|
||||
from radicale import config, log
|
||||
from radicale.rights import owner_only
|
||||
# Manage Python2/3 different modules
|
||||
|
@ -58,7 +60,7 @@ except ImportError:
|
|||
# pylint: enable=F0401
|
||||
|
||||
|
||||
FILENAME = config.get("rights", "file")
|
||||
FILENAME = os.path.expanduser(config.get("rights", "file"))
|
||||
if FILENAME:
|
||||
log.LOGGER.debug("Reading rights from file %s" % FILENAME)
|
||||
RIGHTS = ConfigParser()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue