[hotfix] import in page

This commit is contained in:
Anand Doshi 2015-09-21 15:05:37 +05:30
parent eb2839a0b8
commit fa708c5ac1

View file

@ -5,7 +5,7 @@ from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.build import html_to_js_template
from frappe import conf
from frappe import conf, _
class Page(Document):
def autoname(self):
@ -72,7 +72,7 @@ class Page(Document):
allowed = [d.role for d in frappe.get_all("Page Role", fields=["role"],
filters={"parent": self.name})]
if not allowed:
return True