Home
last modified time | relevance | path

Searched refs:canEditAnnotation (Results 1 – 4 of 4) sorted by relevance

/plugin/annotations/_test/
H A DHelperTest.php43 $this->assertTrue($h->canEditAnnotation($ann, 'alice', false), 'author may edit');
44 $this->assertFalse($h->canEditAnnotation($ann, 'bob', false), 'non-author may not edit');
45 $this->assertTrue($h->canEditAnnotation($ann, 'bob', true), 'admin may edit anyone');
46 $this->assertFalse($h->canEditAnnotation($ann, '', true), 'anonymous never edits');
/plugin/annotations/
H A Daction.php441 if (!$helper->canEditAnnotation($annotation, $user, $isAdmin)) {
527 if (!$helper->canEditAnnotation($annotation, $user, $isAdmin)) {
H A Dhelper.php743 public function canEditAnnotation(array $annotation, $user, $isAdmin) function in helper_plugin_annotations
H A DDESIGN.md207 | Edit / delete own annotation | author (`canEditAnnotation`) |
209 | Edit / delete **any** annotation or reply | admin (`canEditAnnotation` / `canEditReply`) |