Added check in permit.rb when proj is blank.