X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/af5d5f4037aabc493afa60a5394ab3f8f6134917..e6a16fe920961e805c1b6a901692229e33006e3e:/article.inc.php diff --git a/article.inc.php b/article.inc.php index f14de99..8e121d3 100644 --- a/article.inc.php +++ b/article.inc.php @@ -223,7 +223,7 @@ class ArchiveArticle # keep either login or logout parts depending on user level global $User; $userexists = $User && property_exists($User, 'login') && $User->login; - if (! ($userexists and $User->admin("edit {$this->link}")) ) { + if (! ($userexists and !empty($this->editable)) ) { # remove matching elements until first corresponding closing tag $hideclass = $userexists ? 'logout' : 'login'; $tagmatch = '<([a-z]+) class="'.$hideclass.'"[^>]*>';