Skip to content

Commit

Permalink
Merge pull request #5196 from dimagi/exchange-info-unpublished
Browse files Browse the repository at this point in the history
do not view project on exchange that is unpublished
  • Loading branch information
dannyroberts committed Jan 2, 2015
2 parents be635f9 + 058125c commit 080cd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corehq/apps/appstore/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def inverse_dict(d):


def can_view_app(req, dom):
if not dom or not dom.is_snapshot:
if not dom or not dom.is_snapshot or not dom.published:
return False
if not dom.is_approved and (
not getattr(req, "couch_user", "") or not req.couch_user.is_domain_admin(dom.copied_from.name)
Expand Down

0 comments on commit 080cd43

Please sign in to comment.