User -> user
This commit is contained in:
parent
db6490f1d1
commit
92c07a6410
|
@ -224,7 +224,7 @@ class Article(models.Model):
|
||||||
if self.owner == user:
|
if self.owner == user:
|
||||||
return True
|
return True
|
||||||
for u in self.users.iterator():
|
for u in self.users.iterator():
|
||||||
if u == User:
|
if u == user:
|
||||||
return True
|
return True
|
||||||
for g in self.groups.iterator():
|
for g in self.groups.iterator():
|
||||||
for u in g.users.iterator():
|
for u in g.users.iterator():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user