]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
i had introduced a bug... userdirectory didn't work when logged out
authorHannes Mannerheim <h@nnesmannerhe.im>
Tue, 21 Oct 2014 00:57:52 +0000 (02:57 +0200)
committerHannes Mannerheim <h@nnesmannerhe.im>
Tue, 21 Oct 2014 00:57:52 +0000 (02:57 +0200)
plugins/Directory/lib/sortablesubscriptionlist.php

index 9fc1dd6a10e066d77045c8b8de302f12d3b85046..75c42a5fdfc06fd254d6aca69b482295d0822dcc 100644 (file)
@@ -212,7 +212,7 @@ class SortableSubscriptionListItem extends SubscriptionListItem
                $cur = common_current_user();
         list($action, $r2args) = $this->out->returnToArgs();
         $r2args['action'] = $action;        
-               if ($cur->hasRight(Right::DELETEUSER)) {
+               if ($cur instanceof User && $cur->hasRight(Right::DELETEUSER)) {
                        $this->out->elementStart('li', 'entity_delete');
                        $df = new DeleteUserForm($this->out, $this->profile, $r2args);
                        $df->show();