X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/38cf6657d274595ff4a2025a71376525864243ce..217f7dc706236f1edbff198893b54f3518742879:/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.'"[^>]*>';