Searched refs:canAnnotate (Results 1 – 4 of 4) sorted by relevance
| /plugin/annotations/_test/ |
| H A D | HelperTest.php | 33 $this->assertFalse($h->canAnnotate('', AUTH_READ), 'anonymous may not annotate'); 34 $this->assertFalse($h->canAnnotate('alice', AUTH_NONE), 'no read access → no annotate'); 35 $this->assertTrue($h->canAnnotate('alice', AUTH_READ), 'logged in + read → annotate'); 36 $this->assertTrue($h->canAnnotate('alice', AUTH_EDIT), 'edit access implies read');
|
| /plugin/annotations/ |
| H A D | action.php | 366 if (!$helper->canAnnotate($user, $aclLevel)) { 396 if (!$helper->canAnnotate($user, $aclLevel)) { 600 if (!$helper->canAnnotate($user, $aclLevel)) {
|
| H A D | helper.php | 730 public function canAnnotate($user, $aclLevel) function in helper_plugin_annotations
|
| H A D | DESIGN.md | 206 … resolve / reopen | logged in **and** `AUTH_READ` on the page — *not* `AUTH_EDIT` (`canAnnotate`) |
|