some adjustments on permissions for editing and showing certain portlets

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1624 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-03-07 15:21:17 +00:00
parent 89ffe21b86
commit 6c03c732f4

View file

@ -245,8 +245,8 @@ class BaseView(GenericView):
@Lazy @Lazy
def xeditable(self): def xeditable(self):
ct = getattr(self.context, 'contentType', 'application/pdf') ct = getattr(self.context, 'contentType', '')
if ct == 'application/pdf': if not ct or ct == 'application/pdf':
return False return False
if ct.startswith('text/'): if ct.startswith('text/'):
return self.request.principal.id == 'rootadmin' return self.request.principal.id == 'rootadmin'