Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
#3 <@CristianFerreira> - Arrumar bug solicitar doadores somente logado
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianFerreira committed Nov 16, 2016
1 parent f944e91 commit 0a3ad89
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/demand_blood_banks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ class DemandBloodBanksController < ApplicationController

# GET /demand_blood_banks/new
def new
@demand_blood_bank = DemandBloodBank.new
@lastUpdateNecessity = DemandBloodBank.last
if current_user_blood_bank
@demand_blood_bank = DemandBloodBank.new
@lastUpdateNecessity = DemandBloodBank.last
else
return redirect_to root_path
end
end

# GET /demand_blood_banks/1/edit
Expand Down

0 comments on commit 0a3ad89

Please sign in to comment.