Commit 16dcb12a authored by Jérome Perrin's avatar Jérome Perrin

if a user is not authorized to view the original document (not converted),

print a better message (ie. do not display "None" format)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17135 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 476955a0
......@@ -160,7 +160,7 @@ class OOoDocument(File, ConversionCacheMixin):
fallback_script_id = 'Document_checkConversionFormatPermission')
if not method(format=format):
raise Unauthorized("OOoDocument: user does not have enough permission to access document"
" in %s format" % format)
" in %s format" % (format or 'original'))
# Return the original file by default
if format is None:
......
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