Commit 19bc699b authored by glondu's avatar glondu

request.page peut etre None.

darcs-hash:20060502123530-68412-96fd0d3f1a24e7f609d45bf632a11a4de4997e9e.gz
parent 64b0b482
......@@ -396,6 +396,8 @@ def parseACL(request, body):
def is_page_public(request):
#return True
## On recherche si la page est publique
if not request.page:
return False
this_page = request.page.page_name
query = search.QueryParser().parse_query(u'CatégoriePagePublique')
page = search.Page(request, this_page)
......@@ -403,5 +405,5 @@ def is_page_public(request):
if result:
return True
else:
return None
return False
#### FIn DU HACK 4/4
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment