/** * Determines if the user can report this post to site owners. * * @param App\Contracts\PermissionUser $user * @return boolean */ public function canReportGlobally($user) { return $user->canReportGlobally($this); }
/** * Determines if the user can promote the post. * * @param PermissionUser $user * @return boolean */ public function canPromote(PermissionUser $user) { return $user->canReportGlobally($this->post) && !$this->isPromoted() && !$this->global; }