Commit 9276849b authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

User can see the categories table but can not modify it.

parent 631e0b7b
......@@ -111,6 +111,10 @@ tables = ['application',
'status',
'teams']
# a user see the categories table but he/she can not modify it.
if session.role == USER:
tables.remove('categories')
dbui.configure_forms(tables, plugins=['pFormToolTip'], width=350)
dbui.configure_grids(tables, plugins=['pGridRowEditorConfirmDelete',
......
......@@ -108,7 +108,8 @@ if session.role in (ADMIN, USER):
'status')
if session.role == USER:
leaves = ('publications',)
leaves = ('categories',
'publications')
dataPublicationeNode = Node(T('Data publications'))
dataPublicationeNode.add_children(leaves, func=to_grid)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment