i had introduced a bug... userdirectory didn't work when logged out
This commit is contained in:
parent
0f87edd9f4
commit
8dba84bd76
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user