Implement group_required decorator for views