Apply permissions to MPCommentAnnotation objects
Needed soon, to enforce the restriction that a comment has an “owner” and only they are allowed to update it:
- The
contributionsproperty ofMPCommentAnnotationmust be immutable, it must only contain one item, and theprofileIDof theMPContributionobject in thecontributionsarray must match the current user's_id(i.e. they're the owner of theMPCommentAnnotation). - Only the owner of the
MPCommentAnnotationobject is allowed to update it.
Needed but not quite yet:
- A project "viewer" should be allowed to create
MPCommentAnnotationobjects in that project.
Edited by Alf Eaton