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:
parent
89ffe21b86
commit
6c03c732f4
1 changed files with 2 additions and 2 deletions
|
@ -245,8 +245,8 @@ class BaseView(GenericView):
|
|||
|
||||
@Lazy
|
||||
def xeditable(self):
|
||||
ct = getattr(self.context, 'contentType', 'application/pdf')
|
||||
if ct == 'application/pdf':
|
||||
ct = getattr(self.context, 'contentType', '')
|
||||
if not ct or ct == 'application/pdf':
|
||||
return False
|
||||
if ct.startswith('text/'):
|
||||
return self.request.principal.id == 'rootadmin'
|
||||
|
|
Loading…
Add table
Reference in a new issue