Update Map.can_edit docstring
This commit is contained in:
parent
73f9b883e1
commit
a04acb828d
1 changed files with 7 additions and 2 deletions
|
@ -217,8 +217,13 @@ class Map(NamedModel):
|
|||
Define if a user can edit or not the instance, according to his account
|
||||
or the request.
|
||||
|
||||
In ownership mode: only owner and editors
|
||||
In anononymous mode: only "anonymous owners" (having edit cookie set)
|
||||
In owner mode:
|
||||
- only owner by default (OWNER)
|
||||
- any editor if mode is EDITORS
|
||||
- anyone otherwise (ANONYMOUS)
|
||||
In anonymous owner mode:
|
||||
- only owner (has ownership cookie) by default (OWNER)
|
||||
- anyone otherwise (ANONYMOUS)
|
||||
"""
|
||||
can = False
|
||||
if request and not self.owner:
|
||||
|
|
Loading…
Reference in a new issue