If a user without the Modify Account (or Administrator) capability
attempts to use one of the following endpoints for a user other
than 'self':
- Get edit preferences
- Set edit preferences
- Set diff preferences
- Set preferences
an AuthException is raised with the message:
"restricted to members of Modify Accounts".
Aside from the fact that the capability name is wrong (it should not
have the trailing 's'), this message is not particulaly user friendly.
Change it to:
"requires Modify Account capability"
Note that there is some inconsistency in required capability for the
"get" access to these preference endpoints. "Edit preferences" is the
only one that allows "get" with the "Modify Account" capability. The
"diff preferences" and the "preferences" endpoints only allow "get" for
administrators. Fixing this is not within the scope of this change.
Change-Id: Ifa3ccb6e0f43220605906bbda771334cc650972e