Skip to content

Commit

Permalink
don't show dojos with passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 23, 2024
1 parent d6f746e commit 090d62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo_plugin/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def viewable(cls, id=None, user=None):
return (
(cls.from_id(id) if id is not None else cls.query)
.filter(or_(cls.official,
cls.data["type"] == "public",
and_(cls.data["type"] == "public", cls.password == None),
cls.dojo_id.in_(db.session.query(DojoUsers.dojo_id)
.filter_by(user=user)
.subquery())))
Expand Down

0 comments on commit 090d62d

Please sign in to comment.