Moved user filter for admins out of foreach loop