/** * 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; }
/** * 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); }