From 6b74757eef556901cbcf32a2aebe1e030d538453 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Sat, 5 Jul 2014 10:43:23 +0200 Subject: [PATCH] Temporary disable the current_app check due to a bug in django CMS 3.0.3 --- djangocms_blog/cms_toolbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/djangocms_blog/cms_toolbar.py b/djangocms_blog/cms_toolbar.py index 962c4c2..eae4a36 100644 --- a/djangocms_blog/cms_toolbar.py +++ b/djangocms_blog/cms_toolbar.py @@ -12,7 +12,8 @@ from .models import BLOG_CURRENT_POST_IDENTIFIER class BlogToolbar(CMSToolbar): def populate(self): - if not (self.is_current_app and self.request.user.has_perm('djangocms_blog.add_post')): + # TODO: Readd if not self.is_current_app condition when CMS 3.0.4 is released + if not self.request.user.has_perm('djangocms_blog.add_post'): return # pragma: no cover admin_menu = self.toolbar.get_or_create_menu("djangocms_blog", _('Blog')) url = reverse('admin:djangocms_blog_post_changelist')