#656: CFG_ACCESS_CONTROL_LEVEL_ACCOUNT=5 throws error on Admin page
----------------------------------------------+-----------------
Reporter: arwagner | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: WebAccess | Version:
Keywords: CFG_ACCESS_CONTROL_LEVEL_ACCOUNT |
----------------------------------------------+-----------------
In
<invenio>/admin/webaccess/webaccessadmin.py/manageaccounts?mtype=perform_accesspolicy#1
an error is thrown as soon as CFG_ACCESS_CONTROL_LEVEL_ACCOUNT is set to 5
which would be the desired value for LDAP-Authentications. The point of
problem seems to be an out of bound at htis part of the code:
>>>> Frame perform_accesspolicy in /usr/local/lib/python2.6/dist-
packages/invenio/webaccessadmin_lib.py at line 918
account_policy = "{0: 'Users can register new accounts. New
accounts automatically activated.', 1: 'Users can register new accounts.
Admin users must activate the accounts.', 2: 'Only admin can register new
accounts. User cannot edit email address.', 3: 'Only admin can register
new accounts. User cannot edit email address or password.', 4: 'Only admin
can register new accounts. User cannot edit email address,password or
login method.'}"
--
Ticket URL: <http://invenio-software.org/ticket/656>
Invenio <http://invenio-software.org>