]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
only show subscription controls to owner
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 3 Jul 2009 05:26:21 +0000 (01:26 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 3 Jul 2009 05:26:21 +0000 (01:26 -0400)
actions/subscriptions.php

index 4124abea4d2e77e82dbde71c296f0cbff526a02c..42bdae10f78c160846de3f97d364bddfa88f390a 100644 (file)
@@ -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();
     }