lib/eco/api/microcases/set_supervisor.rb in eco-helpers-2.7.20 vs lib/eco/api/microcases/set_supervisor.rb in eco-helpers-2.7.21
- old
+ new
@@ -41,9 +41,10 @@
return false unless new_super.is_a?(Ecoportal::API::V1::Person)
return false if new_super.supervisor_id.nil?
return true if person.id == new_super.id
return true if new_super.supervisor_id == person.id
return true if new_super.supervisor_id == person.external_id
+
false
end
def descrease_subordinates(person, by = 1)
return unless person.is_a?(Ecoportal::API::V1::Person)