Searched refs:canEditAnnotation (Results 1 – 4 of 4) sorted by relevance
| /plugin/annotations/_test/ |
| H A D | HelperTest.php | 43 $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 D | action.php | 441 if (!$helper->canEditAnnotation($annotation, $user, $isAdmin)) { 527 if (!$helper->canEditAnnotation($annotation, $user, $isAdmin)) {
|
| H A D | helper.php | 743 public function canEditAnnotation(array $annotation, $user, $isAdmin) function in helper_plugin_annotations
|
| H A D | DESIGN.md | 207 | Edit / delete own annotation | author (`canEditAnnotation`) | 209 | Edit / delete **any** annotation or reply | admin (`canEditAnnotation` / `canEditReply`) |
|