archivematica icon indicating copy to clipboard operation
archivematica copied to clipboard

Fix API key generation when user edits are disabled

Open replaceafill opened this issue 4 months ago • 0 comments

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.

replaceafill avatar Oct 23 '24 17:10 replaceafill