We show the total count of rebels on rebels#index header.
But the value is not correct for logged-in local group coordinators. It always show the total number of rebels. They want to see the rebels count for their own local group.
The @rebels_count value must be different if !current_user.local_group.nil?.
We show the total count of rebels on
rebels#index
header.But the value is not correct for logged-in local group coordinators. It always show the total number of rebels. They want to see the rebels count for their own local group.
The
@rebels_count
value must be different if!current_user.local_group.nil?
.