Only show CMS toolbar item when in app
This commit is contained in:
parent
0722779a2f
commit
5cd2562cc7
1 changed files with 1 additions and 4 deletions
|
|
@ -9,10 +9,7 @@ from . import conf
|
|||
|
||||
class GovPlanToolbar(CMSToolbar):
|
||||
def populate(self):
|
||||
if (
|
||||
self.request.current_page
|
||||
and self.request.current_page.application_namespace != "govplan"
|
||||
):
|
||||
if not self.is_current_app:
|
||||
return
|
||||
menu = self.toolbar.get_or_create_menu("govplan-menu", conf.GOVPLAN_NAME)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue