[gen] Added appy.gen.Pod.rLayouts, a default layout for rendering POD templates on query result pages; various security and bugfixes.

This commit is contained in:
Gaetan Delannay 2012-11-26 13:58:27 +01:00
parent c3aa01a554
commit 3ec1270fc2
5 changed files with 12 additions and 7 deletions

View file

@ -32,11 +32,12 @@ class ToolWrapper(AbstractWrapper):
return True
def isManager(self):
'''Some pages on the tool can only be accessed by God.'''
'''Some pages on the tool can only be accessed by managers.'''
if self.user.has_role('Manager'): return 'view'
def isManagerEdit(self):
'''Some pages on the tool can only be accessed by God, also in edit.'''
'''Some pages on the tool can only be accessed by managers, also in
edit mode.'''
if self.user.has_role('Manager'): return True
def computeConnectedUsers(self):