summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-07-03 01:26:21 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-07-03 01:26:21 -0400
commitf73d93fa7ae79f1e0b47d73fbdc1b214c6e559ae (patch)
tree62f67de1ed80cc9ac05a700d1269dc4bc47a6034
parentd80c553e5f6e523de380d7c9dc0bbdb9d06cb45e (diff)
only show subscription controls to owner
-rw-r--r--actions/subscriptions.php5
1 files changed, 4 insertions, 1 deletions
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();
}