mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Simplify Rights plugin interface
This commit is contained in:
parent
8ca01a4989
commit
f6a3a19680
11 changed files with 51 additions and 43 deletions
|
@ -23,8 +23,8 @@ from radicale import pathutils, rights
|
|||
|
||||
|
||||
class Rights(rights.BaseRights):
|
||||
def authorized(self, user, path, permissions):
|
||||
def authorization(self, user, path):
|
||||
sane_path = pathutils.strip_path(path)
|
||||
if sane_path not in ("tmp", "other"):
|
||||
return ""
|
||||
return rights.intersect_permissions(permissions)
|
||||
return "RrWw"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue