Esempio n. 1
0
 protected function prepare(array $args = array())
 {
     parent::prepare($args);
     if ($this->scoped->id != $this->target->id) {
         // TRANS: Client error displayed when trying to approve group applicants without being a group administrator.
         $this->clientError(_('You may only approve your own pending subscriptions.'));
     }
     return true;
 }
Esempio n. 2
0
 function prepare($args)
 {
     parent::prepare($args);
     $cur = common_current_user();
     if (!$cur || $cur->id != $this->profile->id) {
         // TRANS: Client error displayed when trying to approve group applicants without being a group administrator.
         $this->clientError(_('You may only approve your own pending subscriptions.'));
         return false;
     }
     return true;
 }