Ejemplo n.º 1
0
 /**
  * Find whether the player can delete a model
  *
  * @param  PermissionModel $model The model that will be deleted
  * @param  boolean         $hard  Whether to check for hard-delete perms, as opposed
  *                                to soft-delete ones
  * @return boolean
  */
 public function canDelete($model, $hard = false)
 {
     if ($hard) {
         return $model->canBeHardDeletedBy($this);
     } else {
         return $model->canBeSoftDeletedBy($this);
     }
 }