From ccdae9f5dee0b34e2f438554fae20971cd278763 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 6 Feb 2006 10:42:06 +0000
Subject: [PATCH] protect methods with Permissions.AccessContentsInformation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5570 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Url.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/Url.py b/product/ERP5/Document/Url.py
index ff61935443..2bb378db1e 100755
--- a/product/ERP5/Document/Url.py
+++ b/product/ERP5/Document/Url.py
@@ -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
-- 
2.30.9