From f73d93fa7ae79f1e0b47d73fbdc1b214c6e559ae Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 3 Jul 2009 01:26:21 -0400 Subject: only show subscription controls to owner --- actions/subscriptions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actions/subscriptions.php') diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 4124abea4..42bdae10f 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(); } -- cgit v1.2.3-54-g00ecf