Commit ccdae9f5 authored by Jérome Perrin's avatar Jérome Perrin

protect methods with Permissions.AccessContentsInformation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 821c0971
......@@ -55,7 +55,8 @@ class Url(Coordinate, Base):
, PropertySheet.Url
)
security.declareProtected(Permissions.View, 'asText')
security.declareProtected(Permissions.AccessContentsInformation,
'asText')
def asText(self):
return self.url_string
......@@ -63,7 +64,8 @@ class Url(Coordinate, Base):
def fromText(self, text):
self.url_string = text
security.declareProtected(Permissions.View, 'standardTextFormat')
security.declareProtected(Permissions.AccessContentsInformation,
'standardTextFormat')
def standardTextFormat(self):
"""
Returns the standard text formats for urls
......
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