Commit 88ea9722 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the user role.

parent cca709a9
......@@ -299,7 +299,7 @@
'Rows in table': 'Rows in table',
'run a free harvester': 'exécuter un moissoneur « libre »',
'run a harvester': 'exécuter un moissonneur',
'run all harvester': 'exécuter tous les moissonneurs',
'run all harvesters': 'exécuter tous les moissonneurs',
'Rôle': 'Rôle',
'Save profile': 'Save profile',
'Scan %s': 'Scan %s',
......
......@@ -120,6 +120,9 @@ fieldsModifier.configure_field('publication_date',
fieldsModifier.configure_field('year',
maxValue=datetime.now().year)
if session.role == 'user':
fieldsModifier.configure_field('id_status', hidden=True)
#
# renderers (HTML editor)
#
......
......@@ -128,12 +128,12 @@ if session.role in ('admin', 'user'):
wizardNode.add_child(T('insert MARCXML'), marc12Leaf)
wizardNode.add_child(T('run a free harvester'), freeLeaf)
wizardNode.add_child(T('extract authors'), authorLeaf)
wizardNode.add_child(T('run a harvester'), harvesterLeaf)
wizardNode.add_child(T('run all harvesters'), runAllLeaf)
if session.role == 'admin':
wizardNode.add_child(T('check and validate'), checkLeaf)
wizardNode.add_child(T('extract authors'), authorLeaf)
wizardNode.add_child(T('run a harvester'), harvesterLeaf)
wizardNode.add_child(T('run all harvester'), runAllLeaf)
wizardNode.sort_children()
......
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