refactor how we check if user is allowed to add more flags to an item