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
|
Define if a user can edit or not the instance, according to his account
|
||||||
or the request.
|
or the request.
|
||||||
|
|
||||||
In ownership mode: only owner and editors
|
In owner mode:
|
||||||
In anononymous mode: only "anonymous owners" (having edit cookie set)
|
- 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
|
can = False
|
||||||
if request and not self.owner:
|
if request and not self.owner:
|
||||||
|
|
Loading…
Reference in a new issue