Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.11
-
None
-
Regular Contributors Level (Easy to Medium)
Description
The validate_doc_update on the users database contains the following code:
if ((oldDoc || newDoc).type != 'user') {
throw(
);
} // we only validate user docs for now
However the effect of this is that a user may change his type from "user" but not back again. I don't think this is what was intended.