11 | | Richard is not a sysadmin, so shouldn't have been able to see or change the state. Need to investigate how this got changed, fix if necessary and report back to Richard. |
| 11 | Similarly an incident with bibbase package where field set to '' (see http://ckan.net/revision/diff/bibbase?diff=702bb0a3-03b7-49ac-87ad-e489c414962f&oldid=5447842d-b6ed-41d9-9cfd-8bb73b85c409) |
| 12 | |
| 13 | Need to investigate how this got changed, fix if necessary and report back to Richard. Note that package 'admins' as well as sysadmins can change the state of a package (though note that bibbase did not appear to have an owner). |
| 14 | |
| 15 | Suggested solution (for setting to ''): |
| 16 | |
| 17 | * Ensure in ckan/forms.py that there is a validator for state field that ensures only set to valid values. |
| 18 | * Check that we do not allow state to be changed in the api except by package owner or sysadmin |