Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * 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;
 }