Commit 8dba84bd authored by hannes's avatar hannes

i had introduced a bug... userdirectory didn't work when logged out

parent 0f87edd9
...@@ -212,7 +212,7 @@ class SortableSubscriptionListItem extends SubscriptionListItem ...@@ -212,7 +212,7 @@ class SortableSubscriptionListItem extends SubscriptionListItem
$cur = common_current_user(); $cur = common_current_user();
list($action, $r2args) = $this->out->returnToArgs(); list($action, $r2args) = $this->out->returnToArgs();
$r2args['action'] = $action; $r2args['action'] = $action;
if ($cur->hasRight(Right::DELETEUSER)) { if ($cur instanceof User && $cur->hasRight(Right::DELETEUSER)) {
$this->out->elementStart('li', 'entity_delete'); $this->out->elementStart('li', 'entity_delete');
$df = new DeleteUserForm($this->out, $this->profile, $r2args); $df = new DeleteUserForm($this->out, $this->profile, $r2args);
$df->show(); $df->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment