The previous implementation of using the --allow option in rad id update would be an absolute list, rather than additive. That is, if
there were existing DIDs not passed in via --allow then they would
be remove.
Change this behaviour to check the existing value of the document’s
allow list, and add to it if --allow is specified.
To enable the user to also remove a DID, the --disallow option is
also added.
The correct usage of these options is improved by checking the
validity of the --visibility option being used, the current state of
the repository’s privacy, and the use of the --allow and
--disallow options.
The previous implementation of using the --allow option in rad id update would be an absolute list, rather than additive. That is, if
there were existing DIDs not passed in via --allow then they would
be remove.
Change this behaviour to check the existing value of the document’s
allow list, and add to it if --allow is specified.
To enable the user to also remove a DID, the --disallow option is
also added.
The correct usage of these options is improved by checking the
validity of the --visibility option being used, the current state of
the repository’s privacy, and the use of the --allow and
--disallow options.
Changes:
- Error if disallow and allow are not disjoint
- Improve test to show off use of multiple
--allowand--disallow
Small CLI output edits.