Commit 2519feb2 authored by Jim Fulton's avatar Jim Fulton

Added logic to raise error if validation fails.

parent 73a10271
"""Document object"""
__version__='$Revision: 1.47 $'[11:-2]
__version__='$Revision: 1.48 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower
......@@ -126,6 +126,11 @@ class Document(HTML, Explicit, RoleManager, Item_w__name__):
for r in self._proxy_roles:
if r in roles: return 1
if inst is parent:
raise 'Unauthorized', (
'You are not authorized to access <em>%s</em>.' % name)
return 0
manage_editForm=HTMLFile('documentEdit', globals())
......
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