'Fetches the list of pending global notifications.'

def Handle(self, args, token=None):

    user_record = aff4.FACTORY.Create(aff4.ROOT_URN.Add('users').Add(token.username), aff4_type=aff4_users.GRRUser, mode='r', token=token)
    notifications = user_record.GetPendingGlobalNotifications()
    return ApiListPendingGlobalNotificationsResult(items=notifications)
