Beispiel #1
0
 /**
  * Determines if the user can sticky or unsticky this post.
  *
  * @param  App\User|App\Support\Anonymous  $user
  * @return boolean
  */
 public function canSticky($user)
 {
     if (!$this->stickied_at) {
         return $user->canSticky($this);
     }
     return false;
 }
Beispiel #2
0
 /**
  * Determines if the user can sticky or unsticky this post.
  *
  * @param  App\User|App\Support\Anonymous  $user
  * @return boolean
  */
 public function canSticky($user)
 {
     return $user->canSticky($this);
 }