From 30d074b52c77de109d36f68f20c4b7c870790c13 Mon Sep 17 00:00:00 2001 From: renzon Date: Tue, 11 Jun 2019 19:09:08 -0300 Subject: [PATCH] Removed enrol button for Leads close #1227 --- .../templates/modules/module_detail.html | 4 ++-- .../modules/tests/test_module_detail_view.py | 21 ++++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/pythonpro/modules/templates/modules/module_detail.html b/pythonpro/modules/templates/modules/module_detail.html index 7a938471..db77a2ce 100644 --- a/pythonpro/modules/templates/modules/module_detail.html +++ b/pythonpro/modules/templates/modules/module_detail.html @@ -1,6 +1,6 @@ {% extends 'core/base.html' %} {% load static %} - +{% load permission_tags %} {% block title %}{{ module.title }}{% endblock %} {% block description %}{{ module.description }}{% endblock %} @@ -15,7 +15,7 @@

{{ module.title }}

  • {{ module.objective }}
  • - {% if module.slug == 'python-birds' %} + {% if module.slug == 'python-birds' and user|has_role:'client,member' %}
    Duração: 4 semanas