From: Evan Prodromou Date: Fri, 3 Jul 2009 05:26:21 +0000 (-0400) Subject: only show subscription controls to owner X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f73d93fa7ae79f1e0b47d73fbdc1b214c6e559ae;p=quix0rs-gnu-social.git only show subscription controls to owner --- diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 4124abea4d..42bdae10f7 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -159,7 +159,10 @@ class SubscriptionsListItem extends SubscriptionListItem $this->showBio(); $this->showTags(); // Relevant portion! - $this->showOwnerControls(); + $cur = common_current_user(); + if (!empty($cur) && $cur->id == $this->owner->id) { + $this->showOwnerControls(); + } $this->endProfile(); }