Skip to content

Commit

Permalink
Merge pull request #2334 from Fesantt/Fix-mine
Browse files Browse the repository at this point in the history
Correção Area do cliente
  • Loading branch information
willph authored Feb 14, 2024
2 parents 29353b0 + 286b84b commit b311205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/controllers/Mine.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ public function minha_ordem_de_servico($y = null, $when = null)
// Cadastro de OS pelo cliente
public function adicionarOs()
{
if (!session_id() || !$this->session->userdata('conectado')) {
redirect('mine');
}
$this->load->library('form_validation');

$this->form_validation->set_rules('descricaoProduto', 'Descrição', 'required');
Expand Down Expand Up @@ -871,6 +874,9 @@ public function cadastrar()

public function downloadanexo($id = null)
{
if (!session_id() || !$this->session->userdata('conectado')) {
redirect('mine');
}
if ($id != null && is_numeric($id)) {
$this->db->where('idAnexos', $id);
$file = $this->db->get('anexos', 1)->row();
Expand Down

0 comments on commit b311205

Please sign in to comment.