Home
last modified time | relevance | path

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

/plugin/annotations/_test/
H A DHelperTest.php33 $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 Daction.php366 if (!$helper->canAnnotate($user, $aclLevel)) {
396 if (!$helper->canAnnotate($user, $aclLevel)) {
600 if (!$helper->canAnnotate($user, $aclLevel)) {
H A Dhelper.php730 public function canAnnotate($user, $aclLevel) function in helper_plugin_annotations
H A DDESIGN.md206 … resolve / reopen | logged in **and** `AUTH_READ` on the page — *not* `AUTH_EDIT` (`canAnnotate`) |