[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:
parent
c3aa01a554
commit
3ec1270fc2
5 changed files with 12 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue