Commit cc3284a0 authored by Rafael Ravedutti's avatar Rafael Ravedutti

Fix schedule index for citizens

Signed-off-by: Rafael Ravedutti's avatarRafael Ravedutti <rrlmachado@inf.ufpr.br>
parent b6a39567
Pipeline #17482 passed with stages
in 4 minutes and 2 seconds
......@@ -20,7 +20,7 @@ class SchedulePolicy < ApplicationPolicy
permission = Professional.get_permission(user[1])
if permission == "citizen"
return nil
return scope.where(citizen_id: citizen.id)
end
professional = citizen.professional
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment