mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: proper way to test if we have a user
This commit is contained in:
parent
2a2a4be357
commit
c6ebfd4363
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ class Map(NamedModel):
|
|||
can = True
|
||||
elif self.share_status in [self.PUBLIC, self.OPEN]:
|
||||
can = True
|
||||
elif request.user is None:
|
||||
elif not request.user.is_authenticated:
|
||||
can = False
|
||||
elif request.user == self.owner:
|
||||
can = True
|
||||
|
|
Loading…
Reference in a new issue