Add TaskBadgeRestrictions to getUserTopTasks

Part of #584