From 00aa04255071d5d9e610a42cc0a24e49148271ef Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 7 Mar 2007 15:16:38 +0000 Subject: [PATCH] some adjustments on permissions for editing and showing certain portlets git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1622 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/common.py | 2 ++ browser/resource_macros.pt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/common.py b/browser/common.py index d353609..4e8900f 100644 --- a/browser/common.py +++ b/browser/common.py @@ -246,6 +246,8 @@ class BaseView(GenericView): @Lazy def xeditable(self): ct = getattr(self.context, 'contentType', '') + if ct == 'application/pdf': + return False if ct.startswith('text/'): return self.request.principal.id == 'rootadmin' return canWrite(self.context, 'title') diff --git a/browser/resource_macros.pt b/browser/resource_macros.pt index a33beef..c4cf78e 100644 --- a/browser/resource_macros.pt +++ b/browser/resource_macros.pt @@ -49,7 +49,7 @@ tal:attributes="href string:${view/url}/.target${view/targetId}/view"> Download - | + |