archivematica
archivematica copied to clipboard
Fix API key generation when user edits are disabled
When the ALLOW_USER_EDITS setting of the Dashboard is set to False
the user profile view shows most fields as read-only but allows the user to regenerate their API key.
However, submission handling of the form is currently broken and the API key is always regenerated when the Save
button is clicked ignoring the state of the Regenerate API key
checkbox.
This also extends test coverage of the views of the accounts
and administration
packages.